My installer needs to read a value from the registry and set the install path to parent of that value.
For example, from registry I get:
D:\apps\client
Then the installer should install the app to
D:\apps
I tried [DIR]\..\ (in “Directory” or “CustomAction”), but seeing following error when installing:
Error 1324. The folder path '..' contains an invalid character.
How can I do this with WiX?
It seems that you can’t do it with pure wix. You can use the Custom Action Type 1. Execute it in immediate mode before ‘LaunchConditions’ action. Initialize somewhere in your wix-code new property like:
And here is sample on C#:
And the last thing:
Hope this helps.