0

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

4

1 回答 1

3

您应该使用的变量是Installed. INSTALLED如果我没记错的话,Windows Installer 会将其识别为单独的用户定义变量。

于 2013-06-21T11:05:58.920 回答