【发布时间】:2016-09-20 05:23:42
【问题描述】:
如果不是使用默认安装目录,为什么 WIX 不会删除 INSTALLDIR 中的快捷方式?我的 WIX 代码是什么样的?
<DirectoryRef Id="INSTALLDIR">
<Component Guid="..." Id="shortcuts_INSTALLDIR">
<RegistryKey ForceDeleteOnUninstall="yes" Id="shortcuts_reg_INSTALLDIR" Key="Software\MyCompany\MyProduct" Root="HKCU">
<RegistryValue KeyPath="yes" Name="shortcut_INSTALLDIR" Type="string" Value=""/>
</RegistryKey>
<Shortcut Arguments="my args " Description="my description" Id="InstallDir_my_name" Name="my name" Target="[INSTALLDIR]mydir\my.exe" WorkingDirectory="INSTALLDIR"/>
</Component>
</DirectoryRef>
卸载程序似乎不知道 INSTALLDIR 的新值。有什么想法吗?
【问题讨论】:
-
您是否将任何文件安装到 INSTALLDIR 中?
-
不,只有子目录下的文件。
标签: wix shortcut uninstallation