This is probably a very basic question, and if I read it right in the documentation and tutorials online it should all work, but it doesn't...
What I'm trying to do is write the full path to a filename in the registry, but [INSTALLDIR] does not get replaced by the actual install dir: <Component Id='SomeEXE' Guid='someguid'> <AppId Description="Some exe" Id="{some other guid}" /> <File Id='FileSomeEXE' Name='Some.exe' DiskId='1' Source='..\SomeEXE\Release\$(var.Platform)\Some.exe' KeyPath='yes' /> <RegistryKey Id='ProductKey' Action='createAndRemoveOnUninstall' Root='HKLM' Key='Software\[Manufacturer]\[ProductName]'> <RegistryValue Id='SomeEXEValue' Action='write' Name='SomeEXEPath' Type='string' Value='[INSTALLDIR]Some.exe'/> <RegistryValue Id='SomeOtherValue' Action='write' Name='Something else' Type='string' Value=''/> </RegistryKey> </Component> The registry on after installation looks like this: [HKLM\SOFTWARE\MyCompany\MyProduct] "SomeEXEPath"="Some.exe" "SomeOtherValue"="" What I want it to be is this: [HKLM\SOFTWARE\MyCompany\MyProduct] "SomeEXEPath"="C:\Program Files\MyCompany\MyProduct\Some.exe" "SomeOtherValue"="" or whatever path the user decided to install to. This should just work, or am I missing something? ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users