Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4265820
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:40:34+00:00 2026-05-21T06:40:34+00:00

We have an installer created using WIX. As part of this install we would

  • 0

We have an installer created using WIX. As part of this install we would like to show the currently selected installation path. I thought this would be much easier than it is, apparently. I have tried using the a public property “INSTALLDIR” (I know we’re not using Installshield, this value is a directory ID.)

<Directory Id="INSTALLDIR" Name="AcmeInc">

I can also see where INSTALLDIR gets set when running the install

MSI(EC:6C) Dir (target): Key: INSTALLDIR , Object: C:\Program Files\AcmeInc\

but when I try to show this on the UI using a Text attribute I get “...\.” which doesn’t even look to be a relative path.

I know there has got to be something simple I’m missing here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:40:34+00:00Added an answer on May 21, 2026 at 6:40 am

    Assuming you’re using WiX 3.5 and the MajorUpgrade element – the following should work (I usually use APPLICATIONFOLDER instead of INSTALLDIR – but they should be interchangeable).

    First, let’s set ARPINSTALLOCATION as described on http://robmensching.com/blog/posts/2011/1/14/ARPINSTALLLOCATION-and-how-to-set-it-with-the-WiX-toolset

    <SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="CostFinalize" />
    

    Now lets set the selected installation folder to the previous installation folder, if one previously existed that is.

    <Property Id="INSTALLDIR" Secure="yes">
        <RegistrySearch Id="FindInstallLocation"
            Root="HKLM"
            Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[WIX_UPGRADE_DETECTED]"
            Name="InstallLocation"
            Type="raw"
            Win64="yes" />
    </Property>
    

    And during the UI sequence, we want this value to be set ‘early’

    <InstallUISequence>
        <AppSearch After="FindRelatedProducts"/>
    </InstallUISequence>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using WiX (Windows Installer XML) I have created an MSI installer which installs Word
I have created an installation package using Wix which installs a Windows service on
I have created application installer using Wix. I have a ProgressBar control present on
I am using WIX here. 3.0 to be specific. I have created an installer
I have created an installer for MyProgram using the Visual Studio Installer (Visual Studio
We have an installer for application that is compiled using WiX and each version
When I create a Windows Installer package (say using WiX) and I install the
I created an installer using WiX. One thing the installer does is sets an
I have created a simple silent installer with no ui for my application using
I have to create an installation package using Wix. If an admin user is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.