Tinywoods Posted October 20, 2005 Share Posted October 20, 2005 HelloI want to add more command lines in one installation.I mean, in case of WPI 3.5.1.that I use, I can run only 6 commands in one install. cmd1[pn]=['CommandLine 1']cmd2[pn]=['CommandLine 2'] |cmd6[pn]=['CommandLine 6']....like this.I want to perform at least 17 commands in one installation. I modified below 3 files, then I could run 17 commands, but WPI starts from “CommandLine 8”, not CommandLine 1.-configwizard.js-generate.js-program.jsWill you let me know how I can modify *.js to add commands? Link to comment Share on other sites More sharing options...
glent Posted October 20, 2005 Share Posted October 20, 2005 why not combine all 16 batch files into 1 batch file? Link to comment Share on other sites More sharing options...
Tinywoods Posted October 21, 2005 Author Share Posted October 21, 2005 Hello glent,Thank you for your interest. Yes, to make (a) batch file(s) is the best way, I agree. But I got in trouble to install apps using a batch file. Honestly speaking, I do not know how to write a batch file to run all files that I want to install except AutoIt What I want to do is….Installing latest installshield update files that I can get from Installshield update .There are 8 installshield engines (Ver. 2,6,7,8,9,10,10.50,11 with *.msi) and 8 update files (Ver.700 to 1100 with *.exe), totally 16 files. In addition, I need to delete some old Installsheild program files from C:\Program Files\Common Files\InstallShield before updating, so I use AutoIt to delete them. Therefore, there are 17 files that I want to execute.What I did…. I made an AutoIt batch file to install 16 files + delete old files. Though I could run 16 files from my AutoIt batch file, only 8 update files were executed in onetime, not file by file. (*.msi files could start file by file). I did ‘WinWaitClose (“”, “DONE”)’, but it did not work.I do not understand reason why “WinWaitClose” commands did not work for those Installsheild file. I guess “WinWaitClose” command does not work for Splash Text in popup window. So, I have to give up using AutoIt for 16 files installation this time. Though I do not know programming at all, I edited 3 WPI *.js files to increasing command lines. When I run WPI to install 17 files, CommandLine8 was executed at first. After that CommandLine9 was executed, then #10, 11, 12…17, 1, 2, 3….6 were executed file by file. I would like to install 17 files in the right order. Link to comment Share on other sites More sharing options...
Tinywoods Posted October 21, 2005 Author Share Posted October 21, 2005 (edited) Finally, I could install 16 Installshield update files. I could not modify WPI files but AutoIt. Thanks for glent’s advise, I was able to stick on a way of batch file install.Here is my script;; Installshield update; Move msi files from DVDDirCreate("C:\WPI\Temp")Sleep(1500)FileCopy("ISScript7.msi", "C:\WPI\Temp\*.*", 1)Sleep(1500)FileCopy("ISScript8.Msi", "C:\WPI\Temp\*.*", 1)Sleep(1500)FileCopy("isscript9.msi", "C:\WPI\Temp\*.*", 1)Sleep(1500)FileCopy("ISScript10.Msi", "C:\WPI\Temp\*.*", 1)Sleep(1500)FileCopy("ISScript1050.Msi", "C:\WPI\Temp\*.*", 1)Sleep(1500)FileCopy("ISScript11.Msi", "C:\WPI\Temp\*.*", 1)Sleep(1500); Delete Old Installshield files from C:DirRemove("C:\Documents and Settings\Administrator\Local Settings\Temp\{B0530A72-3B27-4A74-9EC0-CC3D5AE435A5}", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\engine", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\7", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\8", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\9", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\10", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\1050", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Driver\11", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\07\00", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\07\01", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\08\00", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\09\00", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\09\01", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\10\00", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\10\01", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\10\50", 1)Sleep(1500)DirRemove("C:\Program Files\Common Files\InstallShield\Professional\RunTime\11\00", 1)Sleep(3000); Install the latest Installshield enginesRunWait("IkernelUpdate2.exe")Sleep(2000)RunWait("IkernelUpdate6.exe")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\ISScript7.msi /qb")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\ISScript8.Msi /qb")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\isscript9.msi /qb")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\ISScript10.Msi /qb")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\ISScript1050.Msi /qb")Sleep(2000)RunWait("msiexec.exe /qb /i C:\WPI\Temp\ISScript11.Msi /qb")Sleep(2000); Install the latest Installshield update files; Use "RunWait" instead of "Run"RunWait("InstallShieldEngineUpdate700.exe")Sleep(2000)RunWait("InstallShieldEngineUpdate701.exe")Sleep(2000)RunWait("InstallShieldEngineUpdate901.exe")Sleep(2000)RunWait("InstallShieldEngineUpdate1000.exe")Sleep(2000)RunWait("InstallShieldEngineUpdate1001.exe")Sleep(2000)RunWait("InstallShieldEngineUpdate1050.exe"); Only 1100.exe popup a window, so can not use "RunWait"If ProcessWaitClose("InstallShieldEngineUpdate1050.exe") thenRun("InstallShieldEngineUpdate1100.exe")EndifWinWait("InstallShield", "InstallShield 11")WinActivate("InstallShield", "InstallShield 11")Sleep(2000)ControlClick("InstallShield", "", "Button1")ProcessWaitClose("InstallShieldEngineUpdate1100.exe")Sleep(3000); Delete C:\WPI\Temp and all filesDirRemove("C:\WPI\Temp", 1)Sleep(3000)In this time, I have no problem about number of command lines. However, I wolud be pleased if I could have more commandLines. Edited October 26, 2005 by Tinywoods Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now