clivebuckwheat Posted November 16, 2010 Posted November 16, 2010 HiI have a list of apps that I need to install. I'd like to do this in a batch file via a startup script, that runs on first boot, before the login.I'd like to start an install, check and see if the process is present, if it is do not move on to the next install, if the process is not present move to the next install in my list.Is this doable?. What would be the best why to accomplish this.Thanks for any and all insight you can pass along my way.
Guest Posted November 16, 2010 Posted November 16, 2010 (edited) Just do a start /wait program like...start /wait setup1.exestart /wait setup2.exeIt will wait for setup1 to finish before moving on to setup2. Edited November 16, 2010 by -X-
clivebuckwheat Posted November 16, 2010 Author Posted November 16, 2010 start /wait doesn't seem to be getting it done, because the next program seems to be installing before the previous one is complete. Hence the reason I would like to check if the process still exists instead of doing the start /wait.quote name='-X-' timestamp='1289893201' post='945878']Just do a start /wait program like...start /wait setup1.exestart /wait setup2.exeIt will wait for setup1 to finish before moving on to setup2.
Sp0iLedBrAt Posted November 16, 2010 Posted November 16, 2010 The most common reason for that is that the first program launches other processes during install which do not respect the /wait switch. You could put that process last in line, or give us examples of the programs you are trying to install, or maybe look into SLEEP and PAUSE commands.Cheers
clivebuckwheat Posted November 17, 2010 Author Posted November 17, 2010 I would like to install, Verdiem, lanschool and deep freeze. Obviously deep freeze would be done last because it requires a reboot. I'd like to install these before the login screen pops up, via startup scripts in gpedit.msc. I have all the scripts worked out. I'd like to start the install monitor the process name, check if it exists if it doesn't move to the next program on the list and do the same and so on and so on.The most common reason for that is that the first program launches other processes during install which do not respect the /wait switch. You could put that process last in line, or give us examples of the programs you are trying to install, or maybe look into SLEEP and PAUSE commands.Cheers
dencorso Posted November 17, 2010 Posted November 17, 2010 What about using tlist and find to create a temporary file, checking for the file until it exists, then checking its contents to be sure, then delting it and going on to the next install?
clivebuckwheat Posted November 17, 2010 Author Posted November 17, 2010 never even thought of doing that? hmmm.What about using tlist and find to create a temporary file, checking for the file until it exists, then checking its contents to be sure, then delting it and going on to the next install?
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