谁能给我一个在WIX中修改windows环境系统变量的例子吗?
在完成 WIX 教程后,我仍然不知道如何将 installdir 添加到 Windows 系统变量的 PATH 中。
我尝试使用
Environment Id='UpdatePath' Action='create' Name='PATH' System='yes' Value='[INSTALLDIR]'
但安装程序后路径没有变化。我几乎找不到 WIX 的示例代码。 请帮助我,非常感谢!
I still don't know how to add the installdir into the PATH of the Windows System Variables after I went through the WIX tutorial.
I tried to use
Environment Id='UpdatePath' Action='create' Name='PATH' System='yes' Value='[INSTALLDIR]'
But there was no change in the Path after I installed the program. I can hardly find sample code of WIX anywhere.
Please help me, thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您应该能够使用:
这应该向环境路径添加一个新条目,设置为
[INSTALLDIR]。
You should be able to use:
This should add a new entry to the environment path, set to
[INSTALLDIR].
另一件需要注意的是,
Environment
需要放置在带有目录的组件内,例如环境元素
Another thing to note is,
Environment
need to be placed inside a component with directory, e.g.Details of Wix Element described at Environment Element
遇到了同样的问题,这对我有用:
Had the same exact problem, this have worked for me:
这段代码对我有用:
This code is working for me: