Reputation: 1093
I have the following WiX XML file:
<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>
The "IISCustomActionInstall" custom action executed not only on installs but also when uninstalling. What have I done wrong?
Upvotes: 0
Views: 130
Reputation: 3567
The variable that you should be using is Installed
. INSTALLED
will be recognized by Windows Installer as a separate user defined variable if I am not mistaken.
Upvotes: 3