Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix 卸载时执行安装的自定义操作_Wix_Custom Action - Fatal编程技术网

Wix 卸载时执行安装的自定义操作

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='

我有以下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>

未安装
(不升级ProductCode)和(REMOVE=“ALL”)

“IISCutomationInstall”自定义操作不仅在安装时执行,而且在卸载时也执行。我做错了什么?

您应该使用的变量是已安装的
<如果我没有弄错的话,Windows Installer会将代码>已安装的识别为单独的用户定义变量。

您应该使用的变量是
已安装的
<如果我没有弄错的话,Windows Installer会将code>INSTALLED识别为一个单独的用户定义变量。

谢谢。实际上,我已经用小写字母写了它,但在编写自定义操作实现之前已经更改了…谢谢。实际上,我用小写字母编写了它,但在编写自定义操作实现之前进行了更改。。。。