我想在桌面上添加一个快捷方式,指向安装在“计算机”下的虚拟驱动器。此驱动器没有与之关联的字母。我已成功添加指向可执行文件的链接,但使用 Explorer 的所有尝试都失败了。当我手动添加此快捷方式时,它会获得以下快捷方式(在属性中):Computer\MyProduct
我尝试了以下方法:
<Component Id="DesktopShortcut" Guid="8EF63340-10D5-4583-9E28-F2EFFA666761">
<CreateFolder />
<RegistryKey Root="HKCU" Key="Software\MyProduct\Install" Action="createAndRemoveOnUninstall">
<RegistryValue Name="DTSC" Value="1" Type="integer" KeyPath="yes" />
</RegistryKey>
<Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="My Product" Icon="yoobitsIcon" Target="Computer\MyProduct" />
</Component>
有任何想法吗?