ProgramFilesFolder = "Program Files (x86)" -> http://msdn.microsoft.com/en-us/library/aa370881.aspx ProgramFiles64Folder = "Program Files" -> http://msdn.microsoft.com/en-us/library/aa370880.aspx
You can't write to 64-bit locations from 32-bit processes such as msiexec running your x86 package. Either make a x64 package or live with it. Palbinder Sandher Software Platform Engineer T:+44 (0) 141 945 8500 F:+44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Marius Bancila [mailto:marius.banc...@gmail.com] Sent: 09 February 2012 13:32 To: wix-users@lists.sourceforge.net Subject: [WiX-users] registry search overridden when "Program Files" encountered 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users