User Tools

Site Tools


userspace:adobe_flash_activex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:adobe_flash_activex [2012/07/09 08:55]
bbz_edv
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://forum.opsi.org/wiki/userspace:check_msi-exitcode \\ 
- 
-The installation files can be downloaded from: http://www.adobe.com/special/products/flashplayer/fp_distribution3.html (You may need to apply for a distribution license!) \\ 
- 
-Note: settings.sol can be found in "%UserProfileDir%\Anwendungsdaten\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\" and customized via Control Panel\Flash Player. \\ 
- 
- 
-==== setup.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$ = "install_flash_player_11_active_x_32bit.msi" 
-DefVar $Executable2$ 
-Set $Executable2$ = "install_flash_player_11_active_x_64bit.msi" 
- 
-;the variable for the ExitCode 
-DefVar $ExitCode$ 
- 
-;Check the winst-version 
-requiredWinstVersion >= "4.11" 
- 
-;show $ProductPicture$ and $ProductName$ 
-ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$ 
- 
-;Show installationmessage incl. complete Productname 
-Message "Installiere "+$ProductNameFull1$ 
- 
-;check free diskspace 
-if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB")) 
-        LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" 
- isFatalError 
-endif 
- 
-;get OS-Version 
-if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" ) 
- if $SystemType$ = "x86 System" 
- Winbatch_Install_32-Bit 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
-if $SystemType$ = "64 Bit System" 
- Winbatch_Install_64-Bit 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
-if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" ) 
- Files_Copy_AllUsers_WinNT5x /AllNTUserProfiles 
-endif 
-if ( $NTVersion$ = "Windows Vista" ) 
- Files_Copy_AllUsers_WinNT6x /AllNTUserProfiles 
-endif 
-else 
- LogError "No compatible OS..." 
- isFatalError 
-endif 
- 
-[Winbatch_Install_32-Bit] 
-msiexec /i "%SCRIPTPATH%\$Executable1$" /qb-! reboot=reallysuppress 
- 
-[Winbatch_Install_64-Bit] 
-msiexec /i "%SCRIPTPATH%\$Executable2$" /qb-! reboot=reallysuppress 
- 
-[Files_Copy_AllUsers_WinNT5x] 
-;Konfigurationsdatei in alle Userprofile kopieren 
-copy -s "%SCRIPTPATH%\settings.sol" "%UserProfileDir%\Anwendungsdaten\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\" 
- 
-[Files_Copy_AllUsers_WinNT6x] 
-;Konfigurationsdatei in alle Userprofile kopieren 
-copy -s "%SCRIPTPATH%\settings.sol" "%UserProfileDir%\AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys\" 
- 
-</code> 
- 
-==== 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 "%scriptpath%\" + $ProductPicture$ $ProductName$ 
- 
-sub "%ScriptPath%\SubUninstall.ins" 
- 
-</code> 
- 
- 
-==== 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, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{66E3BA00-6B3D-466B-96FA-6309A7F42BB0}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {66E3BA00-6B3D-466B-96FA-6309A7F42BB0} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.1.53.64 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FFB768E4-E427-4553-BC36-A11F5E62A94D}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {FFB768E4-E427-4553-BC36-A11F5E62A94D} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.1.82.76 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{406A89D6-09E6-4550-B370-8D376DDB56BE}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {406A89D6-09E6-4550-B370-8D376DDB56BE} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.1.85.3 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{95468B00-C081-4B27-AC96-0A2A31359E60}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {95468B00-C081-4B27-AC96-0A2A31359E60} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.1.102.64 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{148D9D03-5D23-4D4F-B5D0-BA6030C45DCF}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {148D9D03-5D23-4D4F-B5D0-BA6030C45DCF} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
- 
- 
-;Adobe Flash ActiveX 10.2.152.26 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E5D03B2E-B2D4-477F-A60D-8E1969D821FA}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {E5D03B2E-B2D4-477F-A60D-8E1969D821FA} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.2.153.1 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B001064C-D061-4BAE-9031-416A838D5536}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {B001064C-D061-4BAE-9031-416A838D5536} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.2.159.1 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FA1D6742-0515-4A94-AD5D-F0484026E4A2}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {FA1D6742-0515-4A94-AD5D-F0484026E4A2} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.3.181.14 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DCC90D9D-4F8D-4A06-9050-ADDB284FF9FA}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {DCC90D9D-4F8D-4A06-9050-ADDB284FF9FA} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
- 
-;Adobe Flash ActiveX 10.3.181.23 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{88D881EF-0567-443A-9A84-E5AAEF29BB34}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {88D881EF-0567-443A-9A84-E5AAEF29BB34} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.3.181.26 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0483BE07-260D-4E4D-815E-F737C0A72E40}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {0483BE07-260D-4E4D-815E-F737C0A72E40} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.3.183.7 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DB093E0B-0934-4183-BA60-5C1ADC9F6424}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {DB093E0B-0934-4183-BA60-5C1ADC9F6424} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 10.3.183.10 Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E24A0015-C73F-4B57-B8DF-5EB84D2E9685}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {E24A0015-C73F-4B57-B8DF-5EB84D2E9685} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 11.0.1.152 32-Bit Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{23D79730-EC1A-435E-83F8-AAEBFE5237B0}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {23D79730-EC1A-435E-83F8-AAEBFE5237B0} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-;Adobe Flash ActiveX 11.0.1.152 64-Bit Deinstallingn, wenn es in der Registry gefunden wurde 
-Set $DisplayName$ = GetRegistrystringvalue64("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A10EE46B-C2E8-4FAB-A8F8-3E80D0662BA9}] DisplayName") 
-if not ($DisplayName$ = "") 
- Message "Deinstalling "+$DisplayName$ 
- set $UninstallCommand$ = "MsiExec.exe /x {A10EE46B-C2E8-4FAB-A8F8-3E80D0662BA9} /qb-! REBOOT=ReallySuppress" 
- Winbatch_Uninstall 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
-endif 
- 
-if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" ) 
- Files_Delete_AllUsers_WinNT5x /AllNTUserProfiles 
-endif 
- 
-if ( $NTVersion$ = "Windows Vista" ) 
- Files_Delete_AllUsers_WinNT6x /AllNTUserProfiles 
-endif 
- 
-[Winbatch_Uninstall] 
-$UninstallCommand$ 
- 
-[Files_Delete_AllUsers_WinNT5x] 
-;Remove config-folder in all userprofiles 
-delete -sf "%UserProfileDir%\Anwendungsdaten\Macromedia\" 
- 
-[Files_Delete_AllUsers_WinNT6x] 
-;Remove config-folder in all userprofiles 
-delete -sf "%UserProfileDir%\AppData\Roaming\Macromedia\" 
- 
-</code> 
  
userspace/adobe_flash_activex.txt · Last modified: 2021/08/23 08:37 (external edit)