谁能给我一个在WIX中修改Windows环境系统变量的示例吗? [英] Can anyone give me a example of modifying windows environment system variables in WIX?
本文介绍了谁能给我一个在WIX中修改Windows环境系统变量的示例吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在完成WIX教程之后,我仍然不知道如何将installdir添加到Windows系统变量的PATH中.
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.
我尝试使用
Environment Id='UpdatePath' Action='create' Name='PATH' System='yes' Value='[INSTALLDIR]'
但是我安装程序后路径没有变化.我几乎在任何地方都找不到WIX的示例代码. 请帮助我,非常感谢!
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!
推荐答案
您应该可以使用:
<Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="yes" Part="last" Action="set" System="yes" />
这应该在环境路径中添加一个新条目,设置为[INSTALLDIR].
This should add a new entry to the environment path, set to [INSTALLDIR].
这篇关于谁能给我一个在WIX中修改Windows环境系统变量的示例吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文