How to wait after successfull install

Topics: Archive - General
Nov 19, 2014 at 6:23 AM
I have create a SCCM 2007 package using the powershell App Deployment ToolKit. It works all fine, but....
I do have 2 programs which needs to be deployed and both needs a forced restart after the installation.
My problem is that when the first one is executed and finished (rc=0) i prompt a restart. But since the restart is opened in another session, my second programs starts to install.
How can I forced the configuration that the second program will only be installed after the first one is restarted ?
I also tried by passing through rc=3010 to SCCM, but it will not prompt me for a restart in SCCM :-(
Any tips, ideas to help me out on this one ?
Dec 31, 2014 at 1:48 PM
I think you would be better off with a task sequence. That way you could have one .ps1 install the first app, reboot step, and another ps1 install the second.

you can get fancy and make the second program be a dependency of the first program and use the application model.
But a TS will save you the trouble.