Hi,
I have the following problem installing to a path read from the registry.
I'm using WIX 3.5 (and currently testing on a Win7 64-bit).
I'm doing a registry search like this:
<Property Id="APPINSTALLDIR">
<RegistrySearch Id='TheAppPath' Type='raw'
Root='HKCU' Key='Software\MyApplication' Name='Path' />
</Property>
Then I use it like this:
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='MyCompany' Name='MyCompany'>
<Directory Id="APPINSTALLDIR" Name="MyProduct">
<!-- etc. etc. -->
</Directory>
</Directory>
</Directory>
</Directory>
I'm expected to install in the path read from Registry, or if it's missing
under (32-bit) Program Files\MyCompany\MyProduct.
I must mention that the target platform for the project is x86.
Everything works fine when the Path value does not start with "C:\Program
Files" (for intance C:\Program Files\MyCompany\MyProduct). In this case
somehow the property is always set to "C:\Program Files (x86)\etcetc" (i.e.
C:\Program Files (x86)\MyCompany\MyProduct). Obviously I don't want that. I
guess the Windows Installer thinks he knows better and replaces it, but I
want to install to that exact location. If for instance Path is "C:\my
Program Files\etcetc\" then there is no problem.
Has anyone ran into this problem and knows the cause? I need to find a
solution for this.
Thank you very much,
Marius Bancila
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users