谁能给我一个在 WIX 中修改 windows 环境系统变量的例子吗? [英] Can anyone give me a example of modifying windows environment system variables in WIX?

查看:26
本文介绍了谁能给我一个在 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆