Jump to content


CraigSCCM

help uninstall java 8.0.45 using batch file

Recommended Posts

Hi guys, I've packaged up an Uninstall batch script and i'm using the following command in the .batch file

@ECHO OFF
msiexec.exe /X{26A24AE4-039D-4CA4-87B4-2F83218045F0} /qn /norestart

then in my command line in SCCM i have:

runas /user:"Administrator" uninstall.bat

I have tried it with just

uninstall.bat

and that still didn't work :-(

 

I have attached my AppDiscoveryLog

 

Any help is much appreciated - thank you in advance

 

Craig

Share this post


Link to post
Share on other sites

Why would you need to use a batch file to uninstall?

 

If you're using SCC '07 just create a collection where that version of Java is installed (Listed in Programs and Features I believe is the option) and create a Package where the Program command line is your msi.exe uninstall string.

If you're using SCCM '12 just create an Application with the MSI (if you have it) and the uninstall will be populated. Then just deploy the Application selected "Uninstall" during the wizard.

 

IMO I try to avoid using batch files as it tends to overcomplicate simple tasks sometimes. I can elaborate more if the above isn't clear

  • Like 1

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