This shows you the differences between two versions of the page.
userspace:adobe_flash_plugin-based [2011/10/07 12:54] Der-Matze created |
userspace:adobe_flash_plugin-based [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Adobe Flash Plugin-based 11.0.1.152 ====== | ||
- | Script by Der-Matze \\ | ||
- | Comments and improvements welcome \\ | ||
- | |||
- | Tested with opsi 4.0.1 \\ | ||
- | Tested with opsi-winst 4.10.x - 4.11.1.6 \\ | ||
- | Tested with Windows XP Professional and Windows 7 Enterprise x64 \\ | ||
- | |||
- | Installation Script for Adobe Flash Plugin-based 11.0.1.152 with custom settings file \\ | ||
- | Uninstallation Script for Adobe Flash Plugin-based Versions 10.0.45.2 - 11.0.1.152 \\ | ||
- | |||
- | This script uses the check_msi-exitcode script: https:// | ||
- | |||
- | The installation files can be downloaded from: http:// | ||
- | |||
- | Note: settings.sol can be found in " | ||
- | |||
- | |||
- | ==== Install.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | [Initial] | ||
- | |||
- | |||
- | |||
- | ;Standard Text, der während der Installation angezeigt wird | ||
- | |||
- | Message = Bitte warten, das Produkt wird installiert | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Loglevel einstellen | ||
- | |||
- | setLogLevel = 6 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Bei Fehlern abbrechen | ||
- | |||
- | ExitOnError = false | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Syntax Fehler werden in einem separaten Fenster angezeigt | ||
- | |||
- | ScriptErrorMessages = on | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | TraceMode = off | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen | ||
- | |||
- | StayOnTop = false | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Actions] | ||
- | |||
- | |||
- | |||
- | ;Variable für die Ermittlung des Betriebssystems | ||
- | |||
- | DefVar $OS$ | ||
- | |||
- | set $OS$ = GetOS | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Variable für die Ermittlung der Betriebssystem Unterversion | ||
- | |||
- | DefVar $NTVersion$ | ||
- | |||
- | set $NTVersion$ = GetNTVersion | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Variable zur Ermittlung der Systemarchitektur | ||
- | |||
- | DefVar $SystemType$ | ||
- | |||
- | Set $SystemType$ = GetSystemType | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Name des Produkts (max. 12 Zeichen) | ||
- | |||
- | DefVar $ProductName$ | ||
- | |||
- | Set $ProductName$ = "Adobe Flash" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | DefVar $ProductNameFull1$ | ||
- | |||
- | set $ProductNameFull1$ = "Adobe Flash 11.0.1.152 Plugin" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Dateiname des Produktbildes mit Erweiterung | ||
- | |||
- | DefVar $ProductPicture$ | ||
- | |||
- | Set $ProductPicture$ = "Adobe Flash.png" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Dateinamen der zu installierenden MSI-Pakete | ||
- | |||
- | DefVar $Executable1$ | ||
- | |||
- | Set $Executable1$ = " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | DefVar $Executable2$ | ||
- | |||
- | Set $Executable2$ = " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Die Variable zur Auswertung des ExitCodes | ||
- | |||
- | DefVar $ExitCode$ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Prüfen der Winst Version | ||
- | |||
- | requiredWinstVersion >= " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | ShowBitmap /3 " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Anzeigen der Installationsbenachrichtigung incl. des vollen Produktnamens | ||
- | |||
- | Message " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Freien Speicherplatz ermitteln | ||
- | |||
- | if not (HasMinimumSpace (" | ||
- | |||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | ||
- | |||
- | isFatalError | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;OS-Version ermitteln | ||
- | |||
- | if ( $NTVersion$ = " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | if $SystemType$ = "x86 System" | ||
- | |||
- | Winbatch_Install_32-Bit | ||
- | |||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | if $SystemType$ = "64 Bit System" | ||
- | |||
- | Winbatch_Install_64-Bit | ||
- | |||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | if ( $NTVersion$ = " | ||
- | |||
- | Files_Copy_AllUsers_WinNT5x / | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | if ( $NTVersion$ = " | ||
- | |||
- | Files_Copy_AllUsers_WinNT6x / | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | else | ||
- | |||
- | LogError "Kein kompatibles Betriebssystem installiert" | ||
- | |||
- | isFatalError | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Winbatch_Install_32-Bit] | ||
- | |||
- | |||
- | |||
- | msiexec /i " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Winbatch_Install_64-Bit] | ||
- | |||
- | |||
- | |||
- | msiexec /i " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Files_Copy_AllUsers_WinNT5x] | ||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | copy -s " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Files_Copy_AllUsers_WinNT6x] | ||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | copy -s " | ||
- | |||
- | </ | ||
- | |||
- | ==== Uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | [Initial] | ||
- | |||
- | |||
- | |||
- | ;Standard Text, der während der Deinstallation angezeigt wird | ||
- | |||
- | Message = Bitte warten, das Produkt wird deinstalliert | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Loglevel einstellen | ||
- | |||
- | setLogLevel = 6 | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Bei Fehlern abbrechen | ||
- | |||
- | ExitOnError = false | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Syntax Fehler werden in einem separaten Fenster angezeigt | ||
- | |||
- | ScriptErrorMessages = on | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | TraceMode = off | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen | ||
- | |||
- | StayOnTop = false | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Actions] | ||
- | |||
- | |||
- | |||
- | ;Variable für die Ermittlung des Betriebssystems | ||
- | |||
- | DefVar $OS$ | ||
- | |||
- | Set $OS$ = GetOS | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Variable für die Ermittlung der Betriebssystem Unterversion | ||
- | |||
- | DefVar $NTVersion$ | ||
- | |||
- | Set $NTVersion$ = GetNTVersion | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Name des Produkts (max. 12 Zeichen) | ||
- | |||
- | DefVar $ProductName$ | ||
- | |||
- | Set $ProductName$ = "Adobe Flash" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Dateiname des Produktbildes mit Erweiterung | ||
- | |||
- | DefVar $ProductPicture$ | ||
- | |||
- | Set $ProductPicture$ = "Adobe Flash.png" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Die Variable zur Auswertung des ExitCodes | ||
- | |||
- | DefVar $ExitCode$ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ; | ||
- | |||
- | ShowBitmap /3 " | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | sub " | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ==== SubUninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;Variable für den msiexec Aufruf zur Deinstallation | ||
- | DefVar $UninstallCommand$ | ||
- | |||
- | |||
- | |||
- | ;Variable für die jeweilige Version. Wird aus der Registry ausgelesen | ||
- | DefVar $DisplayName$ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.0.45.2 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.1.53.64 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.1.82.76 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.1.85.3 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.1.102.64 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.2.152.26 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.2.153.1 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.2.159.1 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.3.181.14 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.3.181.22 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.3.181.26 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.3.183.7 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash Plugin-based 10.3.183.10 deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash ActiveX 11.0.1.152 32-Bit deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash ActiveX 11.0.1.152 64-Bit deinstallieren, | ||
- | Set $DisplayName$ = GetRegistrystringvalue64(" | ||
- | if not ($DisplayName$ = "" | ||
- | |||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | |||
- | endif | ||
- | |||
- | |||
- | |||
- | if ( $NTVersion$ = " | ||
- | Files_Delete_AllUsers_WinNT5x / | ||
- | endif | ||
- | |||
- | |||
- | |||
- | if ( $NTVersion$ = " | ||
- | Files_Delete_AllUsers_WinNT6x / | ||
- | endif | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | [Winbatch_Uninstall] | ||
- | |||
- | $UninstallCommand$ | ||
- | |||
- | |||
- | |||
- | [Files_Delete_AllUsers_WinNT5x] | ||
- | |||
- | ; | ||
- | delete -sf " | ||
- | |||
- | |||
- | |||
- | [Files_Delete_AllUsers_WinNT6x] | ||
- | |||
- | ; | ||
- | delete -sf " | ||
- | |||
- | </ | ||