Jump to content

Recommended Posts

Posted

Hi

I 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.


Posted (edited)

Just do a start /wait program like...

start /wait setup1.exe

start /wait setup2.exe

It will wait for setup1 to finish before moving on to setup2.

Edited by -X-
Posted

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.exe

start /wait setup2.exe

It will wait for setup1 to finish before moving on to setup2.

Posted

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

Posted

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

Posted

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?

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...