155 lines
5.0 KiB
Plaintext
155 lines
5.0 KiB
Plaintext
|
|
||
|
Set $IniFile32$ = $InstallDir32$ + "\opsi-" + $ProductId$ + ".ini"
|
||
|
|
||
|
Set $IniFile64$ = $InstallDir64$ + "\opsi-" + $ProductId$ + ".ini"
|
||
|
|
||
|
if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specific")) or ($INST_architecture$ = "both") or ($INST_architecture$ = "32 only")
|
||
|
if FileExists($IniFile32$)
|
||
|
Set $OnceUninstallDone32$ = GetValueFromInifile($IniFile32$,"COMMON","OnceUninstallDone","false")
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
|
||
|
if FileExists($IniFile64$)
|
||
|
Set $OnceUninstallDone64$ = GetValueFromInifile($IniFile64$,"COMMON","OnceUninstallDone","false")
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
DefVar $once_dotnet1.1$
|
||
|
Set $once_dotnet1.1$ = GetProductProperty("once_dotnet1.1", "uninstall")
|
||
|
DefVar $once_dotnet2.0$
|
||
|
Set $once_dotnet2.0$ = GetProductProperty("once_dotnet2.0", "uninstall")
|
||
|
DefVar $once_dotnet3.0$
|
||
|
Set $once_dotnet3.0$ = GetProductProperty("once_dotnet3.0", "uninstall")
|
||
|
DefVar $once_dotnet3.5$
|
||
|
Set $once_dotnet3.5$ = GetProductProperty("once_dotnet3.5", "nninstall")
|
||
|
DefVar $once_dotnet4.0$
|
||
|
Set $once_dotnet4.0$ = GetProductProperty("once_dotnet4.0", "uninstall")
|
||
|
DefVar $once_dotnet4.5$
|
||
|
Set $once_dotnet4.5$ = GetProductProperty("once_dotnet4.5", "uninstall")
|
||
|
DefVar $once_msjsharp$
|
||
|
Set $once_msjsharp$ = GetProductProperty("once_msjsharp", "uninstall")
|
||
|
DefVar $once_silver$
|
||
|
Set $once_silver$ = GetProductProperty("once_silver", "uninstall")
|
||
|
DefVar $once_jre7$
|
||
|
Set $once_jre7$ = GetProductProperty("once_jre7", "uninstall")
|
||
|
DefVar $once_AdobeShock$
|
||
|
Set $once_AdobeShock$ = GetProductProperty("once_AdobeShock", "uninstall")
|
||
|
DefVar $once_basicruntimes$
|
||
|
Set $once_basicruntimes$ = GetProductProperty("once_basicruntimes", "uninstall")
|
||
|
DefVar $once_msdx9$
|
||
|
Set $once_msdx9$ = GetProductProperty("once_msdx9", "uninstall")
|
||
|
DefVar $once_msdxm$
|
||
|
Set $once_msdxm$ = GetProductProperty("once_msdxm", "uninstall")
|
||
|
DefVar $once_msvc$
|
||
|
Set $once_msvc$ = GetProductProperty("once_msvc", "uninstall")
|
||
|
DefVar $once_AdobeFlash$
|
||
|
Set $once_AdobeFlash$ = GetProductProperty("once_AdobeFlash", "uninstall")
|
||
|
|
||
|
|
||
|
|
||
|
if ($OnceUninstallDone32$ = "false") or ($OnceUninstallDone64$ = "false")
|
||
|
if ($once_dotnet1.1$ = "uninstall")
|
||
|
Winbatch_dotnet1.1_uninstall
|
||
|
endif
|
||
|
if ($once_dotnet2.0$ = "uninstall")
|
||
|
Winbatch_dotnet2.0_uninstall
|
||
|
endif
|
||
|
if ($once_dotnet3.0$ = "uninstall")
|
||
|
Winbatch_dotnet3.0_uninstall
|
||
|
endif
|
||
|
if ($once_dotnet3.5$ = "uninstall")
|
||
|
Winbatch_dotnet3.5_uninstall
|
||
|
endif
|
||
|
if ($once_dotnet4.0$ = "uninstall")
|
||
|
Winbatch_dotnet4.0_uninstall
|
||
|
endif
|
||
|
if ($once_dotnet4.5$ = "uninstall")
|
||
|
Winbatch_dotnet4.5_uninstall
|
||
|
endif
|
||
|
if ($once_msjsharp$ = "uninstall")
|
||
|
Winbatch_msjsharp_uninstall
|
||
|
endif
|
||
|
if ($once_silver$ = "uninstall")
|
||
|
Winbatch_silver_uninstall
|
||
|
endif
|
||
|
if ($once_jre7$ = "uninstall")
|
||
|
Dosbatch_jre7_uninstall
|
||
|
endif
|
||
|
if ($once_AdobeShock$ = "uninstall")
|
||
|
Winbatch_AdobeShock_uninstall
|
||
|
endif
|
||
|
if ($once_basicruntimes$ = "uninstall")
|
||
|
Winbatch_basicruntimes_uninstall
|
||
|
endif
|
||
|
if ($once_msdx9$ = "uninstall")
|
||
|
Winbatch_msdx9_uninstall
|
||
|
endif
|
||
|
if ($once_msdxm$ = "uninstall")
|
||
|
Winbatch_msdxm_uninstall
|
||
|
endif
|
||
|
if ($once_msvc$ = "uninstall")
|
||
|
Winbatch_msvc_uninstall
|
||
|
endif
|
||
|
if ($once_AdobeFlash$ = "uninstall")
|
||
|
Winbatch_AdobeFlash_uninstall
|
||
|
endif
|
||
|
if FileExists($IniFile32$)
|
||
|
Winbatch_once_inifile_32
|
||
|
endif
|
||
|
if FileExists($IniFile64$)
|
||
|
Winbatch_once_inifile_64
|
||
|
endif
|
||
|
comment "uninstall done now force Reboot"
|
||
|
ExitWindows /ImmediateReboot
|
||
|
endif
|
||
|
|
||
|
|
||
|
|
||
|
[Winbatch_dotnet1.1_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 1.1 /u"
|
||
|
|
||
|
[Winbatch_dotnet2.0_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 2.0 /u"
|
||
|
|
||
|
[Winbatch_dotnet3.0_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 3.0 /u"
|
||
|
|
||
|
[Winbatch_dotnet3.5_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 3.5 /u"
|
||
|
|
||
|
[Winbatch_dotnet4.0_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.0 /u"
|
||
|
|
||
|
[Winbatch_dotnet4.5_uninstall]
|
||
|
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.5 /u"
|
||
|
|
||
|
[Winbatch_msjsharp_uninstall]
|
||
|
|
||
|
[Winbatch_silver_uninstall]
|
||
|
|
||
|
[DosBatch_jre7_uninstall]
|
||
|
; copy "%ScriptPath%\UnInstall\Package\JRE\JavaRa.*" "$LogDir$\"
|
||
|
; $LogDir$\JavaRa.exe /REMOVEOLD /SILENT /UPDATEDEFS
|
||
|
cscript /nologo "%ScriptPath%\UnInstall\Package\JRE\JavaUninstallScript.vbs" /keeponly
|
||
|
|
||
|
[Winbatch_AdobeShock_uninstall]
|
||
|
|
||
|
[Winbatch_basicruntimes_uninstall]
|
||
|
|
||
|
[Winbatch_msdx9_uninstall]
|
||
|
|
||
|
[Winbatch_msdxm_uninstall]
|
||
|
|
||
|
[Winbatch_msvc_uninstall]
|
||
|
|
||
|
[Winbatch_AdobeFlash_uninstall]
|
||
|
|
||
|
|
||
|
[Winbatch_once_inifile_32]
|
||
|
inifile "$IniFile32$" [COMMON] OnceUninstallDone=true
|
||
|
|
||
|
[Winbatch_once_inifile_64]
|
||
|
inifile "$IniFile64$" [COMMON] OnceUninstallDone=true
|
||
|
|