我正在用 WiX 创建一个 msi。如果安装级别高于 1,我只想创建某些目录。这是我的目录结构:
<!--DIRECTORIES-->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="Product" />
<Directory Id="Documents" Name="Documents">
<Directory Id="Help" Name="Help" />
<Directory Id="Other" Name="Other" />
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="Shortcuts" Name="Product">
<Directory Id="DocumentShortcuts" Name="Documents">
<Directory Id="HelpShortcut" Name="Help"/>
<Directory Id="OtherShortcut" Name="Other"/>
</Directory>
</Directory>
</Directory>
</Directory>
如果安装级别高于 1,我只希望在开始菜单上创建“DocumentShortcuts”目录。任何建议将不胜感激!