I'm using WIX files to build an MSI package.
It works using an environment value
<Property Id="ProgramFilesDir" Value="$(env.ProgramFiles)" />
but doesn't seem to understand absolute values, eg
<Property Id="ProgramFilesDir" Value="X:\MyFolder\" />
Is there anywhere else I need to declare absolute values?
You shouldn't be using your computer's paths, as no one guarantees, for example, that the target machine is going to have drive X at all. Instead use the built-in paths, like so:
<Directory Id="ProgramFilesFolder">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.