我正在使用wix为outlook插件创建一个引导程序。我只能在安装时检查outlook注册表搜索。在安装时,我下面的支票工作正常。但是在我的加载项安装之后,当有人卸载outlook,然后尝试卸载我的外接程序时,注册表服务器也会在uninstaller运行,这会导致卸载程序的阻塞。,我只能在安装时运行这些outlook注册表搜索检查。我的支票如下:
<util:RegistrySearch Variable="Outlook2013Present" Root="HKLM" Key="SOFTWARE\Microsoft\Office\15.0\Outlook\InstallRoot" Value="Path" />
<util:RegistrySearch Variable="Outlook2013Present64" Root="HKLM" Key="SOFTWARE\Microsoft\Office\15.0\Outlook\InstallRoot" Value="Path" Win64="yes" />
<bal:Condition Message="This setup requires Outlook 2010 or 2013. Please install office and then run installer again ">
Outlook2010Present OR Outlook2010Present64 OR Outlook2013Present OR Outlook2013Present64
</bal:Condition>发布于 2013-10-11 16:08:18
根据文档,Wix工具集文档 WixBundleAction是BOOTSTRAPPER_ACTION中提供的一种BOOTSTRAPPER_ACTION。
这里的回答是:Wix安装程序论坛,我认为您可以尝试这样的方法:
<bal:Condition Message="This setup requires Outlook 2010 or 2013. Please install office and then run installer again ">
(Outlook2010Present OR Outlook2010Present64 OR Outlook2013Present OR Outlook2013Present64 ) OR WixBundleAction = 3
</bal:Condition>通过在条件中使用WixBundleAction = 3子句,该条件只适用于安装,并且在卸载过程中将被忽略。
希望这能有所帮助。
https://stackoverflow.com/questions/19313323
复制相似问题