This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
userspace:adobe_flash_ie_other_via_product_property [2012/04/20 11:23] DaWo created |
userspace:adobe_flash_ie_other_via_product_property [2021/08/23 08:37] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Adobe Flash ActiveX & Plugin All in One Script 11.0.2.202.233 ====== | ||
| Used the Scripts for Adobe Flash installation by Der-Matze as the starting point. | Used the Scripts for Adobe Flash installation by Der-Matze as the starting point. | ||
| Improved it so that just one script is necessary and a product property is used to decide if it should be installed for IE or other browsers. | Improved it so that just one script is necessary and a product property is used to decide if it should be installed for IE or other browsers. | ||
| + | |||
| + | Tested with opsi 4.0.1 \\ | ||
| + | Tested with opsi-winst 4.11.1.6 \\ | ||
| + | Tested with Windows 7 Professional 32 and 64 Bit \\ | ||
| + | |||
| + | Installation Script for Adobe Flash ActiveX 11.0.2.202.233 with custom settings file \\ | ||
| + | Uninstallation Script for Adobe Flash ActiveX Versions 11.0.2.202.233 \\ | ||
| + | |||
| + | The .ins files will be placed in the default directories. The product property has to be added to the file OPSI/ | ||
| + | |||
| + | 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.2.202.233 Plugin" | ||
| + | |||
| + | ;Dateiname des Produktbildes mit Erweiterung | ||
| + | DefVar $ProductPicture$ | ||
| + | Set $ProductPicture$ = "Adobe Flash.png" | ||
| + | |||
| + | ; | ||
| + | DefVar $BrowserType$ | ||
| + | DefVar $Executable1$ | ||
| + | DefVar $Executable2$ | ||
| + | Set $BrowserType$ = GetProductProperty(" | ||
| + | ;Dateinamen der zu installierenden MSI-Pakete | ||
| + | if ($BrowserType$ = " | ||
| + | Set $Executable1$ = " | ||
| + | Set $Executable2$ = " | ||
| + | else | ||
| + | Set $Executable1$ = " | ||
| + | Set $Executable2$ = " | ||
| + | endif | ||
| + | |||
| + | ;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 (" | ||
| + | | ||
| + | | ||
| + | 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, shown during installation | ||
| + | Message = Bitte warten, das Produkt wird Deinstalliert | ||
| + | |||
| + | ;Set Loglevel | ||
| + | setLogLevel = 6 | ||
| + | |||
| + | ;Stop when errors | ||
| + | ExitOnError = false | ||
| + | |||
| + | ;Syntax Fehler are shown in a seperate window | ||
| + | ScriptErrorMessages = on | ||
| + | |||
| + | ;Do not use Single-Step Mode | ||
| + | TraceMode = off | ||
| + | |||
| + | ;No winst-window in foreground while batchmode | ||
| + | StayOnTop = false | ||
| + | |||
| + | [Actions] | ||
| + | ;Variable for the OS | ||
| + | DefVar $OS$ | ||
| + | Set $OS$ = GetOS | ||
| + | |||
| + | ;Variable for the OS-subversion | ||
| + | DefVar $NTVersion$ | ||
| + | Set $NTVersion$ = GetNTVersion | ||
| + | |||
| + | ;Name of product (max. 12 columns) | ||
| + | DefVar $ProductName$ | ||
| + | Set $ProductName$ = "Adobe Flash" | ||
| + | |||
| + | ;filename of productpicture with extension | ||
| + | DefVar $ProductPicture$ | ||
| + | Set $ProductPicture$ = "Adobe Flash.png" | ||
| + | |||
| + | ;the variable for the ExitCode | ||
| + | DefVar $ExitCode$ | ||
| + | |||
| + | ;show $ProductPicture$ and $ProductName$ | ||
| + | ShowBitmap /3 " | ||
| + | |||
| + | sub " | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Uninstall.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 ActiveX 11.0.2.202 64-Bit deinstallieren, | ||
| + | Set $DisplayName$ = GetRegistrystringvalue64(" | ||
| + | if not ($DisplayName$ = "" | ||
| + | set $UninstallCommand$ = " | ||
| + | endif | ||
| + | |||
| + | ;Adobe Flash Plugin 11.0.2.202 64-Bit deinstallieren, | ||
| + | Set $DisplayName$ = GetRegistrystringvalue64(" | ||
| + | if not ($DisplayName$ = "" | ||
| + | set $UninstallCommand$ = " | ||
| + | endif | ||
| + | |||
| + | ;Adobe Flash Plugin 11.0.2.202 32-Bit deinstallieren, | ||
| + | Set $DisplayName$ = GetRegistrystringvalue64(" | ||
| + | if not ($DisplayName$ = "" | ||
| + | set $UninstallCommand$ = " | ||
| + | endif | ||
| + | |||
| + | ;Adobe Flash Active X 11.0.2.202 32-Bit deinstallieren, | ||
| + | Set $DisplayName$ = GetRegistrystringvalue64(" | ||
| + | if not ($DisplayName$ = "" | ||
| + | set $UninstallCommand$ = " | ||
| + | endif | ||
| + | |||
| + | Message " | ||
| + | Winbatch_Uninstall | ||
| + | sub " | ||
| + | |||
| + | 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 " | ||
| + | </ | ||
| + | |||
| + | ==== OPSI/ | ||
| + | < | ||
| + | [ProductProperty] | ||
| + | type: unicode | ||
| + | name: browsertype | ||
| + | multivalue: False | ||
| + | editable: False | ||
| + | description: | ||
| + | values: [" | ||
| + | default: [" | ||
| + | </ | ||