Hi

I have a requirement to use C:\MyApp as the default installation directory
rather than being user Program Files (x86).

I also give the user the opportunity to specify a different directory.

I'm using:

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />

<SetProperty Id="INSTALLFOLDER"  Value="[WindowsVolume]\MyApp"
Before="AppSearch"/>

<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="ProgramFilesFolder">
    <Directory Id="INSTALLFOLDER" Name="MyApp">
At install time, the correct default directory of C:\MyApp is displayed
(assuming the Windows volume is C:).

However, if I specify a different directory (eg C:\MyApp2) during the setup
then the default C:\MyApp is still used.

How do I get this to work so that it defaults to C:\MyApp but the user
supplied directory, if specified, is used?

Thanks
Gavin
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to