1

I need to run a custom action only in Modify mode. I tried below condition but it is running in both Modify mode as well as in Repair mode.

Installed AND NOT REMOVE

I am using Installshield 2012 spring.

McClane
  • 71
  • 1
  • 6
  • Windows Installer doesn't really have such modes. All it really has is installation, repair, or removal of features and components. So what cases do you mean by "modify" that exclude "repair"? – Michael Urman Dec 05 '13 at 13:14
  • If we click an entry in control panel, there is a option called "Change"(My package has Uninstall, Change and Repair optons). If you click on that Change button, installshield wizard window will be opened with 3 check boxes named "Modify", "Repair" and "Remove". I am talking about this "Modify" option. If we select Modify option, we can modify installed features. – McClane Dec 06 '13 at 03:11
  • Isn't the "Modify" checkbox tied to a public property? If yes, then you can use that property to condition the execution of your custom action. – Bogdan Mitrache Dec 06 '13 at 07:24
  • That property tied to _IsMaintenance property. – McClane Dec 07 '13 at 03:40

2 Answers2

0

as far as i know there is no explicit "modify mode" condition. but there are condition for installation and uninstallation, if you exclude both only modify will be left:

Not Installed And NOT REMOVE~="All"

btw modify and repair is basically the same

weberik
  • 2,636
  • 1
  • 18
  • 11
0

Flexera's "Common MSI Conditions Cheat Sheet" says:

Sequencing Condition
Modify Installed AND NOT REINSTALL AND NOT REMOVE~="ALL"
Martin Schneider
  • 14,263
  • 7
  • 55
  • 58