[英]Change default directory in wix
如何在组件自动生成了GUID的WiX安装程序中更改默认安装目录(例如D:/或E:/)?
I have found the solution. 我找到了解决方案。 It works for me.
这个对我有用。
Add the following property inside the product tag 在产品标签内添加以下属性
<Property Id="ROOTDRIVE"><![CDATA[D:\]]></Property>
Inside your directory tag add the 'ComponentGuidGenerationSeed' attribute and give a initial guid. 在目录标签内添加'ComponentGuidGenerationSeed'属性,并提供初始的guid。 Sample of the directory structure
目录结构样本
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="Folder1" Name="Folder1">
<Directory Id="INSTALLFOLDER" Name="Folder2" ComponentGuidGenerationSeed="PUT-YOUR-GUID"/>
</Directory>
</Directory>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.