我有以下 WiX XML 文件:
<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>
“IISCustomActionInstall”自定义操作不仅在安装时执行,在卸载时也执行。我做错了什么?