Jump to content


Bram

Removing application through .bat script

Recommended Posts

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.

 

Share this post


Link to post
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.