so gehts, Deinstall für JRE:
1.4.01, 1.6.21,1.3.0.1:
;subdeljava.ins
Code: Alles auswählen
;subdeljava.ins
;JavaVM 1.6.0_21
set $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216021FF}] DisplayName")
if not ($DisplayName$ = "")
Message "Found "+$DisplayName$+" => uninstalling first"
set $UninstallCommand$ = "MsiExec.exe /x {26A24AE4-039D-4CA4-87B4-2F83216021FF} /qb-! REBOOT=ReallySuppress"
;Winbatch_sun_uninstall /WaitForProcessEnding "msiexec.exe" /TimeOutSeconds 300
sub_deinstall_with_retry
Sub_check_exitcode
endif
;JRE 1.3.0_02
set $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\JRE 1.3.0_02] DisplayName")
if not ($DisplayName$ = "")
Message "Found "+$DisplayName$+" => uninstalling first"
set $UninstallCommand$ = "C:\WINNT\IsUninst.exe -fC:\Programme\JavaSoft\JRE\Uninst.isu -a"
;Winbatch_sun_uninstall /WaitForProcessEnding "msiexec.exe" /TimeOutSeconds 300
sub_deinstall_with_retry
Sub_check_exitcode
endif
;JRE, SE v1.4.0_01
set $DisplayName$ = GetRegistryStringValue ("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7CF31609-270B-11D6-9445-000102308676}] DisplayName")
if not ($DisplayName$ = "")
Message "Found "+$DisplayName$+" => uninstalling first"
set $UninstallCommand$ = ""%ProgramFilesDir%\InstallShield Installation Information\{7CF31609-270B-11D6-9445-000102308676}\setup.exe" -s -a -s -f1%scriptpath%\uninst-141.iss"
;Winbatch_sun_uninstall /WaitForProcessEnding "msiexec.exe" /TimeOutSeconds 300;
sub_deinstall_with_retry
Sub_check_exitcode
endif
Code: Alles auswählen
[InstallShield Silent]
Version=v6.00.000
File=Response File
[File Transfer]
OverwrittenReadOnly=NoToAll
[{7CF31609-270B-11D6-9445-000102308676}-DlgOrder]
Dlg0={7CF31609-270B-11D6-9445-000102308676}-SprintfBox-0
Count=1
[{7CF31609-270B-11D6-9445-000102308676}-SprintfBox-0]
Result=1
[Application]
Name=Java 2 Runtime Environment, SE v1.4.1_01
Version=1.4.1_01
Company=JavaSoft
Lang=0007
[{7CF31609-270B-11D6-9445-000102308676}-File Transfer]
SharedFile=YesToAll
MH