如何在 WIX 中引用用户的主目录 [英] How can I reference the user's home directory in WIX
本文介绍了如何在 WIX 中引用用户的主目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为 SDK 创建一个安装程序,其中包含由最终用户编译的源代码.
I am creating an installer for an SDK, which includes source code to be compiled by the end-user.
我希望我的 Wix 安装程序默认将它放在用户的主目录中,但我找不到要使用的正确属性名称.
I want my Wix installer to put this in the users' home directory by default, but I can't find the right property name to use.
推荐答案
您还可以使用 [%HOMEPATH]
引用 HOMEPATH
环境变量.有关用于属性的语法的更多详细信息,请参阅 格式化 数据类型.
You could also reference the HOMEPATH
environment variable with [%HOMEPATH]
. For more detail about the syntax used for properties, see the Formatted datatype.
这篇关于如何在 WIX 中引用用户的主目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文