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

How to run script only on Install


2 replies to this topic

Nachtmahr

Nachtmahr
  • Full Members
  • 13 posts

Posted 10 February 2010 - 16:07

Hello Guys,

is there a way to run Script only on Install?
I'm trying to launch cmd on Install to install Roles and Features on an Windows 2008 Server OS and i just want to run it when the application is installed and not on deinstall.

Any suggestions?

smc0862

smc0862
  • Full Members
  • 54 posts

Posted 10 February 2010 - 18:22

I'm assuming this is a Custom Action script?

If so, when you add it to either your UI Sequence or Execute Sequence there will be a condition field. If you only want it to run the first time your product is installed and never on , add the condition:

Not Installed AND NOT REMOVE="ALL"

And if you plan on doing patches you may also want to add...

AND NOT PATCH



vPanchumarthi

vPanchumarthi
  • Full Members
  • 56 posts

Posted 18 February 2010 - 12:25

Hi,

LaunchApp / LaunchAppAndWait will work as like executing commands over command prompt......