can not execute --launcher in batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
dssnosher
Posts: 4
Joined: 09 Aug 2010 07:35

can not execute --launcher in batch

#1 Post by dssnosher » 09 Aug 2010 07:38

Hello all
I have a line that works when i type it in cmd but it wont execute in batch

The line is:
installc.exe --launcher.ini silent -install.ini –nosplash

I've tried putting "--launcher.ini silent -install.ini –nosplash" in %switch% and then doing

installc.exe %switch% but still not luck.

How can I execute such?

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: can not execute --launcher in batch

#2 Post by aGerman » 09 Aug 2010 10:46

No idea about launcher, but are your batch file, installc.exe and the .ini files all in the same folder?
I searched the internet and never found silent -install.ini. It was always silent-install.ini (without space in the middle).

Regards
aGerman

dssnosher
Posts: 4
Joined: 09 Aug 2010 07:35

Re: can not execute --launcher in batch

#3 Post by dssnosher » 10 Aug 2010 06:33

Everything is in the same directory and it works fine if you copy-paste the line in cmd window. And you are correct its silent-install.ini, its just a typo. Any ideas how to execute that line?

aGerman
Expert
Posts: 4654
Joined: 22 Jan 2010 18:01
Location: Germany

Re: can not execute --launcher in batch

#4 Post by aGerman » 10 Aug 2010 08:09

Hmm. You could try to CALL it

Code: Select all

call installc.exe --launcher.ini silent-install.ini –nosplash

or to START it

Code: Select all

start "" /wait installc.exe --launcher.ini silent-install.ini –nosplash


Regards
aGerman

dssnosher
Posts: 4
Joined: 09 Aug 2010 07:35

Re: can not execute --launcher in batch

#5 Post by dssnosher » 10 Aug 2010 09:18

Still no go i get
Usage: <launcher> [-options] and there goes a long list of options. There is something about --launcher.ini that this batch doesnt like

avery_larry
Expert
Posts: 391
Joined: 19 Mar 2009 08:47
Location: Iowa

Re: can not execute --launcher in batch

#6 Post by avery_larry » 10 Aug 2010 11:43

Post your code so we can inspect it. You may be defining switch incorrectly, or you may be calling it from inside a for loop or if statment . . .

dssnosher
Posts: 4
Joined: 09 Aug 2010 07:35

Re: can not execute --launcher in batch

#7 Post by dssnosher » 10 Aug 2010 12:06

here are the instruction on how to do it manually and this works 100% as i've installed this over 10 times

0) Map Drive I: to \\svr102tor\INSTALL\
(** IMPORTANT - MUST BE MAPPED TO I: DRIVE **)

1) cd i:\IBM-InstallationManager1.3.3 and run
installc --launcher.ini silent-install.ini -nosplash

so here is my batch for it

@ ECHO OFF
net use I: /delete>NUL

ECHO ===Mapping Temp Drive===
NET USE I: \\sctorscc201\install
ECHO ===Temp Drive Mapped===

ECHO ==============================
ECHO INSTALLING IBM INSTALL MANAGER
ECHO THIS MAY TAKE UP TO 10 MINUTES
ECHO PLEASE WAIT
ECHO ==============================

I:
cd \IBM-InstallationManager1.3.3\
set switch1=installc --launcher.ini silent-install.ini –nosplash
call %switch1%
ECHO installed

ECHO ==============================
ECHO INSTALLATION COMPLETE!!!
ECHO ==============================

I have tried many variations of calling installc.exe --launcher.ini silent-install.ini –nosplash but nothing seems to work

Post Reply