2013-04-01 10:30:15 +02:00
DefVar $reboot$
Set $reboot$ = "false"
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet1.1$ = "reinstall")
2013-04-04 11:40:29 +02:00
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E78BFA60-5393-4C38-82AB-E8019E464EB4}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net11_deu_32
sub_check_exitcode
endif
2013-04-01 10:30:15 +02:00
Winbatch_dotnet1.1_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet1.1_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet2.0$ = "reinstall")
2013-04-04 11:40:29 +02:00
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C314CE45-3392-3B73-B4E1-139CD41CA933}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net20_deu_32
sub_check_exitcode
endif
2013-04-01 10:30:15 +02:00
Winbatch_dotnet2.0_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet2.0_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet3.0$ = "reinstall")
2013-04-04 11:40:29 +02:00
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C2C284D2-6BD7-3B34-B0C5-B2CAED168DF7}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net30_deu_32
sub_check_exitcode
endif
2013-04-01 10:30:15 +02:00
Winbatch_dotnet3.0_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet3.0_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet3.5$ = "reinstall")
2013-04-04 11:40:29 +02:00
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{052FDD78-A6EA-3187-8386-C82F4CA3A929}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net35_deu_32
sub_check_exitcode
endif
2013-04-01 10:30:15 +02:00
Winbatch_dotnet3.5_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet3.5_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet4.0$ = "reinstall")
2013-04-04 11:40:29 +02:00
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C911A0C2-2236-3164-AA47-F2566C01AE5E}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net40_extended_deu_32
sub_check_exitcode
endif
if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F750C986-5310-3A5A-95F8-4EC71C8AC01C}] DisplayName") = "")
comment "MSI id " + $MsiId32$ + " found in registry, starting msiexec to uninstall"
Winbatch_uninstall_msi_net40_client_deu_32
sub_check_exitcode
endif
2013-04-01 10:30:15 +02:00
Winbatch_dotnet4.0_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet4.0_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_dotnet4.5$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_dotnet4.5_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_dotnet4.5_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-01 17:38:49 +02:00
; a reboot is requred after the .net cleanup so that further uninstalls can work
if ($reboot$ = "true")
comment "uninstall done now force Reboot"
ExitWindows /ImmediateReboot
endif
2013-04-04 07:15:53 +02:00
if ($sereby_msjsharp$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_msjsharp_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_msjsharp_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_silver$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_silver_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_silver_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_jre$ = "reinstall")
2013-04-01 10:30:15 +02:00
Dosbatch_jre_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_jre_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_AdobeShock$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_AdobeShock_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_AdobeShock_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_basicruntimes$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_basicruntimes_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_basicruntimes_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_msdx9$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_msdx9_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_msdx9_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_msdxm$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_msdxm_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_msdxm_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_msvc$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_msvc_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_msvc_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
2013-04-04 07:15:53 +02:00
if ($sereby_AdobeFlash$ = "reinstall")
2013-04-01 10:30:15 +02:00
Winbatch_AdobeFlash_uninstall
2013-04-01 14:49:25 +02:00
opsiservicecall_AdobeFlash_uninstall
2013-04-01 10:30:15 +02:00
Set $reboot$ = "true"
endif
if ($sereby_java_reinstall$ = "true")
Dosbatch_java_reinstall
endif
2013-03-17 21:43:45 +01:00
2013-04-01 17:38:49 +02:00
; and the final reboot after the uninstall is done
2013-04-01 10:30:15 +02:00
if ($reboot$ = "true")
2013-03-17 21:43:45 +01:00
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"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet1.1_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet1.1",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_dotnet2.0_uninstall]
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 2.0 /u"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet2.0_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet2.0",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_dotnet3.0_uninstall]
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 3.0 /u"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet3.0_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet3.0",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_dotnet3.5_uninstall]
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 3.5 /u"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet3.5_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet3.5",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_dotnet4.0_uninstall]
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.0 /u"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet4.0_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet4.0",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_dotnet4.5_uninstall]
%ScriptPath%\UnInstall\NET\cleanup_tool.exe /q:a /c:"cleanup.exe /p .NET Framework 4.5 /u"
2013-04-01 14:49:25 +02:00
[opsiservicecall_dotnet4.5_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_dotnet4.5",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_msjsharp_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_msjsharp_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_msjsharp",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_silver_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_silver_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_silver",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-04-01 10:30:15 +02:00
[DosBatch_jre_uninstall]
@echo off
2013-04-01 17:38:49 +02:00
rem copy "%ScriptPath%\UnInstall\Package\JRE\JavaRa.*" "$LogDir$\"
rem $LogDir$\JavaRa.exe /SILENT /PURGE /UPDATEDEFS
2013-03-17 21:43:45 +01:00
cscript /nologo "%ScriptPath%\UnInstall\Package\JRE\JavaUninstallScript.vbs" /keeponly
2013-04-01 14:49:25 +02:00
[opsiservicecall_jre_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_jre",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-04-01 10:30:15 +02:00
[Dosbatch_java_reinstall]
@echo off
cscript /nologo "%ScriptPath%\UnInstall\Packages\JRE\JavaUninstallScript.vbs" /keeponly
2013-03-17 21:43:45 +01:00
[Winbatch_AdobeShock_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_AdobeShock_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_AdobeShock",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_basicruntimes_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_basicruntimes_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_basicruntimes",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_msdx9_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_msdx9_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_msdx9",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_msdxm_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_msdxm_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_msdxm",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_msvc_uninstall]
2013-04-01 14:49:25 +02:00
[opsiservicecall_msvc_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_msvc",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
[Winbatch_AdobeFlash_uninstall]
2013-04-01 17:38:49 +02:00
$UninstallFlashExe$ -uninstall
2013-03-17 21:43:45 +01:00
2013-04-01 14:49:25 +02:00
[opsiservicecall_AdobeFlash_uninstall]
"method": "setProductProperty"
"params": [
"$ProductId$",
"sereby_AdobeFlash",
2013-04-01 17:38:49 +02:00
"install",
2013-04-01 14:49:25 +02:00
"%opsiserviceUser%"
]
2013-03-17 21:43:45 +01:00
2013-04-04 11:40:29 +02:00
; windows xp dotnet bug uninstall
; uninstall all languages and then remove .net
[Winbatch_uninstall_msi_net35_deu_32]
msiexec /x {052FDD78-A6EA-3187-8386-C82F4CA3A929} /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_net30_deu_32]
msiexec /x {C2C284D2-6BD7-3B34-B0C5-B2CAED168DF7} /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_net20_deu_32]
msiexec /x {C314CE45-3392-3B73-B4E1-139CD41CA933} /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_net11_deu_32]
msiexec /x {E78BFA60-5393-4C38-82AB-E8019E464EB4} /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_net40_extended_deu_32]
msiexec /x {C911A0C2-2236-3164-AA47-F2566C01AE5E} /qb! REBOOT=ReallySuppress
[Winbatch_uninstall_msi_net40_client_deu_32]
msiexec /x {F750C986-5310-3A5A-95F8-4EC71C8AC01C} /qb! REBOOT=ReallySuppress
2013-03-17 21:43:45 +01:00