0

I'm trying to configure the custom action to be executed only on first install and not to be executed on upgrade during installing the new product. My current Custom Action condition looks like that:

(Installed = "") AND (NOT (REMOVE ~= "ALL")) AND (NOT WIX_UPGRADE_DETECTED) AND (NOT UPGRADINGPRODUCTCODE) AND PREVIOUSVERSIONSINSTALLED="" 

But the action with this configuration is executed during upgrade as well. How to configure the custom action to be executed only on first install(if it is possible of course)?

1
  • Just check out the log file. In the log file are listed all properties and their values. So you'll be able to see why your condition does not work. I'd say, that PREVIOUSVERSIONSINSTALLED="" and NOT PREVIOUSVERSIONSINSTALLED is not equal. Commented Oct 7 at 6:24

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.