tags:

views:

59

answers:

1

I'm using WIX files to build an MSI to deploy an application.

It work using an environment value,

<Property Id="ProgramFilesDir" Value="$(env.ProgramFiles)" />

but doesn't seem to understand abolsute values, e.g

<Property Id="ProgramFilesDir" Value="X:\MyFolder\" />

Is there anywhere else I need to declare absolute values?

+2  A: 

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">
On Freund
The problem is that I know there will be an x drive becuase only one person will be installing the software.
ForeverDebugging
I would still advise against (you can never know where the MSI will end up). If you insist, you can try to give the properties some value that works, and then change it in Orca and see what happens.
On Freund