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?
can not execute --launcher in batch
Moderator: DosItHelp
Re: can not execute --launcher in batch
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
I searched the internet and never found silent -install.ini. It was always silent-install.ini (without space in the middle).
Regards
aGerman
Re: can not execute --launcher in batch
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?
Re: can not execute --launcher in batch
Hmm. You could try to CALL it
or to START it
Regards
aGerman
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
Re: can not execute --launcher in batch
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
Usage: <launcher> [-options] and there goes a long list of options. There is something about --launcher.ini that this batch doesnt like
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
Re: can not execute --launcher in batch
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 . . .
Re: can not execute --launcher in batch
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
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