I have a wix installer in which several user actions are performed, such as registering, etc. However, we want them to run only in Install, not when updating or uninstalling.
I tried to set it to NOT Installed AND REINSTALL, but this does not work either.
Does anyone know what the correct property is when you want to run certain applications using custom actions only during installation, and not during updating or uninstalling?
<InstallExecuteSequence> <Custom Action="PosConfig.CustomAction" Before="StartServices"><![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND UILevel>3]]></Custom> <Custom Action="Register.CustomAction" After="PosConfig.CustomAction">NOT Installed AND NOT UPGRADINGPRODUCTCODE </Custom> <Custom Action="OPOSSelectorFirst.CustomAction" After="Register.CustomAction"><![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND &ProductFeature=3 AND Not OPOSDLLINSTALLED]]></Custom> <Custom Action="OPOSSelectorUpdate.CustomAction" After="OPOSSelectorFirst.CustomAction"><![CDATA[NOT Installed AND NOT UPGRADINGPRODUCTCODE AND &ProductFeature=3 AND Not OPOSDLLINSTALLED]]></Custom> </InstallExecuteSequence>
EDIT: Added my custom action sequence.
source share