This shows you the differences between two versions of the page.
userspace:adobe_air [2012/09/27 11:05] ichwillquark Added information about different way to extract the msi file |
userspace:adobe_air [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Adobe Air 3.0.0.4080 ====== | ||
- | 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 Air \\ | ||
- | Uninstallation Script for Adobe Air Versions 2.5.1.17730 - 3.0.0.4080 \\ | ||
- | |||
- | This script uses the check_msi-exitcode script: https:// | ||
- | |||
- | The installation file can be downloaded from: http:// | ||
- | |||
- | To extract the msi file from AdobeAIRInstaller.exe execute the file and wait for the first dialog to appear. Do not continue the installation. \\ | ||
- | |||
- | Open the temp folder of your user profile and copy the complete content of the temporary installation folder (named something like AIR75.tmp) to " | ||
- | |||
- | Another way to extract the msi file would be to simply extract it from the downloaded installer via a tool like 7-Zip. | ||
- | |||
- | |||
- | ==== 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 for the OS-subversion | ||
- | DefVar $NTVersion$ | ||
- | set $NTVersion$ = GetNTVersion | ||
- | |||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = "Adobe Air" | ||
- | |||
- | ;complete name of product incl. versionno. | ||
- | DefVar $ProductNameFull1$ | ||
- | set $ProductNameFull1$ = "Adobe Air 3.0.0.4080" | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = " | ||
- | |||
- | ;filename of MSI-package which has to be installed | ||
- | DefVar $Executable1$ | ||
- | Set $Executable1$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ;Check the winst-version | ||
- | requiredWinstVersion >= " | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | ;check free diskspace | ||
- | if not (HasMinimumSpace (" | ||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | ;Get OS-Version | ||
- | if ( $NTVersion$ = " | ||
- | ;Deinstall of old versions | ||
- | sub " | ||
- | Message " | ||
- | Winbatch_Install | ||
- | sub " | ||
- | else | ||
- | LogError "Kein kompatibles Betriebssystem installiert" | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | [Winbatch_Install] | ||
- | msiexec /i " | ||
- | </ | ||
- | |||
- | ==== 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] | ||
- | |||
- | ;Name of product (max. 12 columns) | ||
- | DefVar $ProductName$ | ||
- | Set $ProductName$ = "Adobe Air" | ||
- | |||
- | ;filename of productpicture with extension | ||
- | DefVar $ProductPicture$ | ||
- | Set $ProductPicture$ = " | ||
- | |||
- | ;the variable for the ExitCode | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ;show $ProductPicture$ and $ProductName$ | ||
- | ShowBitmap /3 " | ||
- | |||
- | sub " | ||
- | |||
- | </ | ||
- | |||
- | ==== SubUninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | |||
- | ;Variable for msiexec-call of deinstallation | ||
- | DefVar $UninstallCommand$ | ||
- | |||
- | ;Variable for the diffrent versions gotten from the registry | ||
- | DefVar $DisplayName$ | ||
- | |||
- | ;deinstall Adobe Air 2.5.1.17730, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;deinstall Adobe Air 2.6.0.19120, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;deinstall Adobe Air 2.6.0.19140, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;deinstalll Adobe Air 2.7.x.xxxxx, | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | |||
- | |||
- | ;deinstall Adobe Air 3.0.0.4080, if found in Registry | ||
- | Set $DisplayName$ = GetRegistrystringvalue32(" | ||
- | if not ($DisplayName$ = "" | ||
- | Message " | ||
- | set $UninstallCommand$ = " | ||
- | Winbatch_Uninstall | ||
- | sub " | ||
- | endif | ||
- | |||
- | |||
- | [Winbatch_Uninstall] | ||
- | $UninstallCommand$ | ||
- | |||
- | </ |