Skip to content

Removing application through .bat script

Featured Replies

Hello,

 

I'm trying to add a remove option in our Software Center for Office 2013. I'd like to use the OfficeScrub script to remove the software and do a reboot afterwards.

The remove-office.bat script looks like this:


:remove Microsoft Office 2013 suites 
cscript "C:\Program Files (x86)\Microsoft Office\uninstall\Offscrub13.vbs" ALL /Quiet /NoCancel
shutdown /r /f

On the client the Offscrub13.vbs file is available in the folder above. The bat script is available in the content and in the Office deployment options I've added:

9Xx2iL3.png

 

When clicking the uninstall button in the software center, after a few seconds the shutdown command triggers. So I guess it skips the uninstall line.

Any reason why this happens? The bat script runs fine from command line.

 

  • Author

Damn, why didn't I think of this ^_^

I've moved my reboot part to the vbs script and all is working fine now. Thanks Peter.

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.