This shows you the differences between two versions of the page.
userspace:adobe_flash_activex [2011/12/28 08:17] Thomas_H |
userspace:adobe_flash_activex [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Adobe Flash ActiveX 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 ActiveX 11.0.1.152 with custom settings file \\ | ||
- | Uninstallation Script for Adobe Flash ActiveX 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, shown during installation | ||
- | Message = Bitte warten, das Produkt wird installiert | ||
- | ;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 für die Ermittlung der Betriebssystem Unterversion | ||
- | DefVar $NTVersion$ | ||
- | set $NTVersion$ = GetNTVersion | ||
- | |||
- | ;Variable for the OS-subversion | ||
- | DefVar $SystemType$ | ||
- | Set $SystemType$ = GetSystemType | ||
- | |||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = "Adobe Flash" | ||
- | |||
- | ;complete name of product incl. versionno. | ||
- | DefVar $ProductNameFull1$ | ||
- | set $ProductNameFull1$ = "Adobe Flash 11.0.1.152 ActiveX" | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = "Adobe Flash.png" | ||
- | |||
- | ;filename of MSI-package which has to be installed | ||
- | DefVar $Executable1$ | ||
- | Set $Executable1$ = " | ||
- | DefVar $Executable2$ | ||
- | Set $Executable2$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ;Check the winst-version | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | ;Show installationmessage incl. complete Productname | ||
- | Message " | ||
- | |||
- | ;check free diskspace | ||
- | if not (HasMinimumSpace (" | ||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ;get OS-Version | ||
- | 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 "No compatible OS..." | ||
- | 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 " | ||
- | |||
- | </ | ||
- | |||
- | |||
- | ==== SubUninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;Variable for the msiexec-call for deinstallation | ||
- | DefVar $UninstallCommand$ | ||
- | |||
- | ;Variable for the current version. Will be read from registry. | ||
- | DefVar $DisplayName$ | ||
- | |||
- | ;Adobe Flash ActiveX 10.0.45.2 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.1.53.64 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.1.82.76 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.1.85.3 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.1.102.64 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | |||
- | |||
- | ;Adobe Flash ActiveX 10.2.152.26 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.2.153.1 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.2.159.1 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.3.181.14 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | |||
- | ;Adobe Flash ActiveX 10.3.181.23 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.3.181.26 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.3.183.7 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 10.3.183.10 Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 11.0.1.152 32-Bit Deinstallingn, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Adobe Flash ActiveX 11.0.1.152 64-Bit Deinstallingn, | ||
- | 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] | ||
- | ;Remove config-folder in all userprofiles | ||
- | delete -sf " | ||
- | |||
- | [Files_Delete_AllUsers_WinNT6x] | ||
- | ;Remove config-folder in all userprofiles | ||
- | delete -sf " | ||
- | |||
- | </ | ||