我有以下 WIX (3.7) 代码(通用)问题是当我添加超过 1 个快捷方式时,在安装过程中只创建了最后一个。我检查了日志,它只执行了一个 CreateShortcut 实例......
<Directory Id="ProgramMenuFolder">
<Directory Id="company_StartMenu" Name="company">
<Component Guid="FBF1EE90-789F-4891-BF3D-C73E6E786BA3" Id="comapny_StartMenu">
<CreateFolder />
<RemoveFolder Id="company_StartMenu" On="uninstall" />
</Component>
<Directory Id="AppDir_StartMenu" Name="app">
<Component Guid="93ECCEED-C0B6-46B5-ADA6-3E45BD0A1B2C" Id="AppDir_StartMenu">
<CreateFolder />
<RemoveFolder Id="AppDir_StartMenu" On="uninstall" />
<Shortcut Id="__radDD6BE_STARTSHORTCUT" Name="app" Description="Start app" Target="runtime.exe" Advertise="no">
<Icon Id="___radDD6BE_STA" SourceFile="C:\path\appicon.ico" /> </Shortcut>
<Shortcut Id="__rad5206D_openfolder" Name="Open folder" Description="Open install folder " Target="[INSTALLDIR]" Advertise="no"></Shortcut>
</Component>
</Directory>
</Directory>
</Directory>