Wix 根据ALLUSERS值创建快捷方式
根据ALLUSERS值(由用户设置),我的安装程序可以很好地安装到程序文件或AppData。但是,当ALLUSERS设置为1时,我无法将图标分发给所有用户-目前它们仅为当前用户显示Wix 根据ALLUSERS值创建快捷方式,wix,installation,windows-installer,Wix,Installation,Windows Installer,根据ALLUSERS值(由用户设置),我的安装程序可以很好地安装到程序文件或AppData。但是,当ALLUSERS设置为1时,我无法将图标分发给所有用户-目前它们仅为当前用户显示 <Fragment> <DirectoryRef Id="INSTALLDIR"> <Component Id="File1.exe" Guid="*"> <File Id="File1.exe" Name="File1.exe
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Component Id="File1.exe" Guid="*">
<File Id="File1.exe" Name="File1.exe" DiskId="1" KeyPath="yes"
Source="Content\File1.exe" />
</Component>
</DirectoryRef>
<DirectoryRef Id="TARGETDIR">
<Component Id="shortcutFile1" Guid="*">
<Shortcut Id="shortcutFile1" Name="File1"
Target="[INSTALLDIR]File1.exe"
Directory="StartMenuAppFolder" Show="normal" />
<RemoveFolder Id="removeStartMenuAppFolder"
Directory="StartMenuAppFolder"
On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\MyApp\shortcutID_0001"
KeyPath="yes" Type="string" Value="" />
</Component>
</DirectoryRef>
</Fragment>
任何帮助都将不胜感激 不久前我就写了这篇文章,但我不确定它读起来有多好。或许你可以快速浏览一下: