Skip to content

help uninstall java 8.0.45 using batch file

Featured Replies

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

Why are you using the "runas" command? There should be no need, in my opinion. In the properties of the program are you setting it to "run as an administrator"?

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

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.