Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Script to run uninstaller if file exists then Restart workstation


Recommended Posts

Posted

Hello,

 

I'm wondering if anyone could help with the following. I'm trying to run this script below to complete a silent uninstall and then restart the workstation only once the uninstall has been completed. But what is happening is when the script has been run, the uninstaller doesn't run and the workstation proceeds to shut down subsequently not completing the uninstall before doing so despite adding the && as suggested from various sources on the web.

 

if exist "C:\Windows\SysWOW64\Adobe\Shockwave 12\SwHelper_1224194.exe" (Start /wait "C:\Windows\SysWOW64\Adobe\Shockwave 12\uninstaller.exe" /S) && "C:\Windows\System32\shutdown.exe" /r /t 00

 

 

Cheers

Davey

Posted

Try this...

 

if exist "C:\Windows\SysWOW64\Adobe\Shockwave 12\SwHelper_1224194.exe" (
   start /wait "C:\Windows\SysWOW64\Adobe\Shockwave 12\uninstaller.exe" /S && "C:\Windows\System32\shutdown.exe" /r /t 00
)

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



×
×
  • Create New...