/build/static/layout/Breadcrumb_cap_w.png

Issues with removing and installing another piece of software with a reboot

I have a piece of software in our organization that I need to be able to remove with a script, have the machine reboot and then install the new version after the restart. I currently have both installs scripted into a batch file, but for some reason I cannot get SCCM to perform the reboot and continue the install. It seems to fail and never kick off again the install after a reboot. Does anyone have any ideas of a way to perform an install, reboot, then install another piece of software after sccm reboots the machine?

Any ideas would help!

Thanks!
Tim

2 Comments   [ + ] Show comments
  • Is there a compelling reason to force a reboot between uninstall and new install? Generally, this need arises when there are "in use" files in the old application which need a reboot to complete the removal of. However, in many cases a script which stops any running services associated with the old application, and/or stops any tasks associated with the old application, will then allow the old app to be uninstalled without needing a reboot, thus allowing the new app to be installed and consequently return a good exit code to SCCM. - EdT 8 years ago
  • It is java we are fighting. Its requiring a reboot, but for some reason SCCM will not reboot the computer, even though the NORESTART flags are there. - turbocharged1988 8 years ago

Answers (3)

Posted by: SMal.tmcc 8 years ago
Red Belt
1
Have your uninstall batch poke the HKLM runonce key and put the install command in a key so when it reboots and logs in, it runs that command automatically.

Comments:
  • That sounds like a plan! I never would have thought to do that! I appreciate your quick response!

    Tim - turbocharged1988 8 years ago
Posted by: vjaneczko 8 years ago
9th Degree Black Belt
0
Remember that Runonce will only work for local Admin accounts starting with Win7: https://support.microsoft.com/en-us/kb/2021405
Posted by: rock_star 8 years ago
4th Degree Black Belt
0
schtask ??

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ