开发者

Using an absolute value in a .net installer

开发者 https://www.devze.com 2022-12-15 14:37 出处:网络
I\'m using WIX files to build an MSI package. It works using an environment value <Property Id=\"ProgramFilesDir\" Value=\"$(env.ProgramFiles)\" />

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, e.g

<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">
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号