WIX:WixUI_InstallDir 中的默认目录 [英] WIX:default directory in WixUI_InstallDir
本文介绍了WIX:WixUI_InstallDir 中的默认目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
WixUI_InstallDir 中的默认目录始终为 D:.我如何将其更改为目录 C:?
The default directory in WixUI_InstallDir is always D:. How do i change it to directory C:?
它也没有显示我在 .wxs 文件中定义的目录结构.它只显示 D:.它实际上应该显示D:\folder1\folder2".这是为什么 ?我需要怎么做才能显示目录结构?
It is also not showing my directory structure defined in .wxs file.It is only showing D:.It should actually show 'D:\folder1\folder2'. why is that ? what will i have to do to show the directory structure?
<Property Id="ROOTDRIVE"><![CDATA[C:\]]></Property>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id='E' Name='E'>
<Directory Id="dirm" Name="E Mrch">
<Component></Component>
</Directory>
</Directory>
</Directory>
</Directory>
推荐答案
您可以在产品定义中使用以下属性:
You can use the following property in the Product definition:
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
INSTALLDIR 可以像这样定义
INSTALLDIR can be defined like
<Directory Id="ProgramFilesFolder">
<Directory Id="MySoftware" Name="MySoftware">
<Directory Id="INSTALLDIR" Name="MyProduct">
</Directory>
</Directory>
</Directory>
这篇关于WIX:WixUI_InstallDir 中的默认目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文