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

setup variable


3 replies to this topic

Donzer

Donzer
  • Full Members
  • 29 posts

Posted 13 February 2009 - 15:05

Hi

I am looking for a way of running a setup.exe from a command line passing in an identifier to let the installer know if this is a test sytem install or a normal install.

i.e. we have an install which checks a customer's server for specific services running and if they are not, the install will abort. However, our some of our internal systems do not have these services installed but we still need a way of installing the main body of the software onto our internal systems.

Is there a way I can code a parameter to be accepted during install (i.e. Setup.exe Testsys) that will then look at the conditions within installscript and not do services check we require for out in the field ?

does that make sense!?

thankful for any assistance or ideas on how to do this.

Thanks Donna

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 14 February 2009 - 10:17

You can set properties on the command line:
setup.exe /v"TESTINSTALL=1"
You can then use this property to condition features or custom actions.

Donzer

Donzer
  • Full Members
  • 29 posts

Posted 16 February 2009 - 11:47

hi stefan

can i then use that variable within installscript to check conditions for install?

Donna

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 16 February 2009 - 19:06

You can use MsiGetProperty to get the value of properties in your script.