【发布时间】:2011-08-17 11:20:02
【问题描述】:
如何让 wix 3.5 记住我的公司名称作为用户选择的要安装的文件夹的一部分?
例如,
我通常将我的文件安装到 C:\CompanyName,当安装程序提示用户选择要安装的首选位置时,C:\CompanyName 通常会替换为 [PATH TO USERS SELECTED FOLDER]。我希望它将 CompanyName 添加到路径的末尾。
[用户所选文件夹的路径]\CompanyName
我怎样才能做到这一点?
下面的代码安装到 C:\CompanyName
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- Install stuff into [SystemDrive] folder. -->
<!-- This is the folder where the website content will be located -->
<Directory Id="INSTALLLOCATION" Name="CompanyName">
</Directory>
</Directory>
干杯!
【问题讨论】:
标签: c# installation wix wix3.5