tjd*_*bts 1 windows-installer wix
我有一个如下所示的广告快捷方式
<Component Id="comp1" Guid="{0EB394A2-1D7B-44A0-A85A-EC17E2816BDD}" KeyPath="yes">
<Shortcut Id="Shortcut1" Directory="MyDir" Name="OfficeForms" ShortName="off~1" Description="officeformdesigns" Arguments="Filename.exe /x param" Icon="Icon.ico" WorkingDirectory="FormDir" Advertise="yes"/>
</Component>
Run Code Online (Sandbox Code Playgroud)
但是当安装程序被安装时,这个快捷方式没有显示。当我没有给“广告”属性快捷方式显示时,它只是打开我的 [INSTALLDIR] 文件夹而不是“Filename.exe /x param”
我也得到了如下所示的 ICE 验证。
错误 90 ICE50:组件“comp1”有一个广告快捷方式,但 KeyPath 为空。
通告的快捷方式应该(必须?)嵌套在<File>组件的关键路径(快捷方式应该启动的目标)下。
例如
<Component Id="comp1" Guid="{0EB394A2-1D7B-44A0-A85A-EC17E2816BDD}" >
<File Id="File.exe" KeyPath="yes" Source="$(var.binDir)File.exe">
<Shortcut Id="Shortcut1" Directory="MyDir" Name="OfficeForms" ShortName="off~1" Description="officeformdesigns" Arguments="/x param" Icon="Icon.ico" WorkingDirectory="FormDir" Advertise="yes"/>
</File>
</Component>
Run Code Online (Sandbox Code Playgroud)