Komponente: Bacht - Uninstall Java 7/8 & Install Java 8.x

Post Reply
User avatar
hct
Posts: 5
Joined: Thu, 23 Apr 2015, 13:24
Location: Mindelheim
Contact:

Komponente: Bacht - Uninstall Java 7/8 & Install Java 8.x

Post by hct »

Hallo,
hier mal mein Script mit welchem ich alte Java´s deinstalliere um danach die aktuellste Java-Version Silent zu installieren:

Code: Select all

@echo off
pushd %~dp0

msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217021FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217025FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217040FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217045FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217051FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217055FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217060FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217065FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217067FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F03217071FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F83218025F0}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F83218031F0}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F83218040F0}
jre1.8.0_45.msi /qn
Das Script ist auch leicht zu erweitern da sich für eine neue Version welche deinstalliert werden muss nur die Zeile kopiert werden muss
und an der viert und fünftletzten Stelle die Java-Version geändert werden muss z.B. 31 auf 40.

Guss
HCT
Post Reply

Return to “HowTo's von User für User”