I'm creating a program which is being installed by Wix, using VS 2010 and
I've already got the product.wxs ready.

In my wxs file, I've got directory definitions which looks like this:

<SetDirectory Id="INSTALLFOLDER" Value="[WindowsVolume]Myapp" />
<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="INSTALLFOLDER" Name="Myapp">
    <Directory Id="Myapp_Installer_Dir" Name="Myapp">
          <Directory Id="BIN" Name="Bin" />
          <Directory Id="ICONS" Name="Icons" />
    </Directory>
  </Directory>
</Directory>

And then I got these file installation definitions:

<DirectoryRef Id="Myapp_Installer_Dir">
  <Component Id="INSTALLER_Myapp"
Guid="{94F18477-8562-4004-BC6F-5629CC19E4CB}" >
    <File Source="$(var.Myapp.TargetPath)" KeyPath="yes"/>
  </Component>
</DirectoryRef>

<DirectoryRef Id="BIN">
  <Component Id="INSTALLER_Data"
Guid="{545FB5DD-8A52-44D7-898E-7316E70A93F5}" >
    <File Source="$(var.Data.TargetPath)" KeyPath="yes"/>
  </Component>
    ...

And it continues in that manner and the files for the "ICONS" directory are
defined as well.

I am also using the WixUI_InstallDir dialog set and I got these lines
present as well:

<Property Id="WIXUI_INSTALLDIR" Value="Myapp_Installer_Dir" />
<UIRef Id="WixUI_InstallDir" />

The problem I'm facing is that when the user installs the program and
changes the value of the installation folder, the files of the "Bin" and
"Icons" are installed to their correct location as the user wanted, but the
Myapp target is installed to a constant location no matter what which is to
this directory that was defined earlier:
   <Directory Id="Myapp_Installer_Dir" Name="Myapp">

Why does only the bin and icons files are installed to the correct folder
the user wanted, but the myapp target does not? How can I fix this?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Possible-bug-with-WixUI-InstallDir-tp7589722.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to