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

Passing data vial cmdline


1 reply to this topic

Th.M

Th.M
  • Full Members
  • 12 posts

Posted 23 June 2008 - 13:23

Hi,

want to prepare my installer being executed silently. I want pass a serial number and installdir via CmdLine arg.

As I read so far, I have to capitalize the MSI property representing the license key (to be public), to overwrite it by passing it as argument.

I tried following cmd:
C:\Documents and Settings\MyMashine\Desktop\Installer>start /wait setup.exe
/S /v/qn /V LICENSEKEY=XXXX-XXXX-XXXX

but cmd prompt came back immediately and nothing has been installed.

Following cmd works:
C:\Documents and Settings\Administrator\Desktop\Installer>start /wait setup.exe
/S /v/qn

but uses default values (for sure, as nothing was passed)...

Do I have to prepare the MSI property to be able to be overwritten? Or is there a smarter way to pass data via cmd to the installer? Is it possible to overwrite installshield data like INSTALLDIR too?

Thanks in advande,
Thomas

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 June 2008 - 12:14

Are you using INstallShield 2009? As far as I know this is the first version that supports multiple /v arguments. For previous versions you must combine everything into one /v argument:
/v"/qn LICENSEKEY=XXXX-XXXX-XXXX"

You have to remove the blank between /v and LICENSEKEY.

I'm not sure but /v may be case sensitive, so use /v instead of /V.

If this still doesn't work generate a log file (www.msifaq.com/a/1022.htm) to see what's actually going on.