Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

maintenance mode condition


2 replies to this topic

biswajitsaha

biswajitsaha
  • Full Members
  • 7 posts

Posted 21 June 2012 - 08:12

i am running my installer in maintenance mode and selecting modify option.Now i want to select a feature to install.I want to call an installscript on the basis of the that feature selection and should run only in maintenance mode.can any one tell me what condition should i use?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 June 2012 - 10:27

You could use:
Installed And (&FeatureName = 3)
The first part makes sure this doesn't run during first time install.
The second part means "run only when the named "FeatureName" is being installed", so it will not run if the feature has been installed previously and not if the features is beiung uninstalled. Note that 3 stands for "installed locally", so if you also support "run from source" you need to take care of value 4, too (which makes it a bit more complicated, depending on whether or not the custom action should run when the fature state switches from 3 to 4 or vice versa).

biswajitsaha

biswajitsaha
  • Full Members
  • 7 posts

Posted 27 June 2012 - 07:03

thanks stefan..