Wix 卸载时执行安装的自定义操作
我有以下WiX XML文件:Wix 卸载时执行安装的自定义操作,wix,custom-action,Wix,Custom Action,我有以下WiX XML文件: <Binary Id='IISCustomActionBinary' SourceFile='$(var.Setup.CustomActions.TargetDir)$(var.Setup.CustomActions.TargetName).CA.dll' /> <CustomAction Id='IISCustomActionInstall' BinaryKey='IISCustomActionBinary' DllEntry='
<Binary Id='IISCustomActionBinary' SourceFile='$(var.Setup.CustomActions.TargetDir)$(var.Setup.CustomActions.TargetName).CA.dll' />
<CustomAction Id='IISCustomActionInstall' BinaryKey='IISCustomActionBinary' DllEntry='ConfigureIis' Execute='deferred'/>
<CustomAction Id='IISCustomActionUninstall' BinaryKey='IISCustomActionBinary' DllEntry='UnconfigureIis' Execute='deferred' />
<InstallExecuteSequence>
<Custom Action='IISCustomActionInstall' Before='InstallFinalize'>
NOT INSTALLED
</Custom>
<Custom Action='IISCustomActionUninstall' Before='InstallFinalize'>
(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
</Custom>
</InstallExecuteSequence>
未安装
(不升级ProductCode)和(REMOVE=“ALL”)
“IISCutomationInstall”自定义操作不仅在安装时执行,而且在卸载时也执行。我做错了什么?您应该使用的变量是已安装的
<如果我没有弄错的话,Windows Installer会将代码>已安装的识别为单独的用户定义变量。您应该使用的变量是已安装的
<如果我没有弄错的话,Windows Installer会将code>INSTALLED识别为一个单独的用户定义变量。谢谢。实际上,我已经用小写字母写了它,但在编写自定义操作实现之前已经更改了…谢谢。实际上,我用小写字母编写了它,但在编写自定义操作实现之前进行了更改。。。。