This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userspace:adobe_air [2011/10/10 13:31] Der-Matze created |
userspace:adobe_air [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
Tested with opsi-winst 4.10.x - 4.11.1.6 \\ | Tested with opsi-winst 4.10.x - 4.11.1.6 \\ | ||
Tested with Windows XP Professional and Windows 7 Enterprise x64 \\ | Tested with Windows XP Professional and Windows 7 Enterprise x64 \\ | ||
+ | |||
+ | The installation file can be downloaded from: http:// | ||
+ | |||
+ | **Attention: | ||
Installation Script for Adobe Air \\ | Installation Script for Adobe Air \\ | ||
Line 11: | Line 15: | ||
This script uses the check_msi-exitcode script: https:// | 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. \\ | 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 " | 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. | ||
+ | **Tree** | ||
+ | < | ||
+ | CLIENT_DATA | ||
+ | ├ Install.ins | ||
+ | ├ Uninstall.ins | ||
+ | ├ SubUninstall.ins | ||
+ | ├ adobe_air.png | ||
+ | └ Files | ||
+ | └ setup.msi | ||
+ | </ | ||
==== Install.ins ==== | ==== Install.ins ==== | ||
Line 25: | Line 36: | ||
[Initial] | [Initial] | ||
- | + | ;Standard Text, shown during installation | |
- | + | Message = Bitte warten, das Produkt wird installiert | |
- | + | ;Set Loglevel | |
- | ;Standard Text, der während der Installation angezeigt wird | + | setLogLevel = 6 |
- | + | ;Stop when errors | |
- | Message = Bitte warten, das Produkt wird installiert | + | ExitOnError = false |
- | + | ;Syntax Fehler | |
- | + | ScriptErrorMessages = on | |
- | + | ;Do not use Single-Step Mode | |
- | + | TraceMode = off | |
- | + | ;No winst-window in foreground while batchmode | |
- | + | StayOnTop = false | |
- | + | ||
- | ; | + | |
- | + | ||
- | setLogLevel = 6 | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Bei Fehlern abbrechen | + | |
- | + | ||
- | ExitOnError = false | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Syntax Fehler | + | |
- | + | ||
- | ScriptErrorMessages = on | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | TraceMode = off | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen | + | |
- | + | ||
- | StayOnTop = false | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[Actions] | [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" | ||
- | ;Variable für die Ermittlung des Betriebssystems | + | ;filename of productpicture with extension |
- | + | DefVar $ProductPicture$ | |
- | DefVar $OS$ | + | Set $ProductPicture$ = " |
- | + | ||
- | 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 Air" | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | DefVar $ProductNameFull1$ | + | |
- | + | ||
- | set $ProductNameFull1$ = "Adobe Air 3.0.0.4080" | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Dateiname des Produktbildes mit Erweiterung | + | |
- | + | ||
- | DefVar $ProductPicture$ | + | |
- | + | ||
- | Set $ProductPicture$ = " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Dateinamen der zu installierenden MSI-Pakete | + | |
- | + | ||
- | DefVar $Executable1$ | + | |
- | + | ||
- | Set $Executable1$ = " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Die Variable zur Auswertung des ExitCodes | + | |
- | + | ||
- | DefVar $ExitCode$ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Prüfen der Winst Version | + | |
- | + | ||
- | requiredWinstVersion >= " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | ShowBitmap /3 " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Freien Speicherplatz ermitteln | + | |
- | + | ||
- | if not (HasMinimumSpace (" | + | |
- | + | ||
- | LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" | + | |
- | + | ||
- | isFatalError | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;OS-Version ermitteln | + | |
- | + | ||
- | if ( $NTVersion$ = " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | sub " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Message " | + | |
- | + | ||
- | Winbatch_Install | + | |
- | + | ||
- | sub " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | else | + | |
- | + | ||
- | LogError "Kein kompatibles Betriebssystem installiert" | + | |
- | + | ||
- | isFatalError | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
+ | ;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] | [Winbatch_Install] | ||
- | + | msiexec /i " | |
- | + | ||
- | + | ||
- | msiexec /i " | + | |
</ | </ | ||
Line 278: | Line 111: | ||
[Initial] | [Initial] | ||
+ | ;Standard Text, shown during installation | ||
+ | Message = Bitte warten, das Produkt wird deinstalliert | ||
+ | ;Set Loglevel | ||
+ | setLogLevel = 6 | ||
- | ;Standard Text, der während der Deinstallation angezeigt wird | + | ;Stop when errors |
- | + | ExitOnError = false | |
- | Message = Bitte warten, das Produkt wird deinstalliert | + | ;Syntax Fehler |
- | + | ScriptErrorMessages = on | |
- | + | ;Do not use Single-Step Mode | |
- | + | TraceMode = off | |
- | + | ;No winst-window in foreground while batchmode | |
- | + | StayOnTop = false | |
- | + | ||
- | + | ||
- | ;Loglevel einstellen | + | |
- | + | ||
- | setLogLevel = 6 | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Bei Fehlern abbrechen | + | |
- | + | ||
- | ExitOnError = false | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Syntax Fehler | + | |
- | + | ||
- | ScriptErrorMessages = on | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | TraceMode = off | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Im Batchmode das Winst-Fenster nicht im Vordergrund anzeigen | + | |
- | + | ||
- | StayOnTop = false | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[Actions] | [Actions] | ||
+ | ;Name of product (max. 12 columns) | ||
+ | DefVar $ProductName$ | ||
+ | Set $ProductName$ = "Adobe Air" | ||
+ | ;filename of productpicture with extension | ||
+ | DefVar $ProductPicture$ | ||
+ | Set $ProductPicture$ = " | ||
- | ;Name des Produkts (max. 12 Zeichen) | + | ;the variable for the ExitCode |
- | + | DefVar $ExitCode$ | |
- | DefVar $ProductName$ | + | |
- | + | ||
- | Set $ProductName$ = "Adobe Air" | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Dateiname des Produktbildes mit Erweiterung | + | |
- | + | ||
- | DefVar $ProductPicture$ | + | |
- | + | ||
- | Set $ProductPicture$ = " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ;Die Variable zur Auswertung des ExitCodes | + | |
- | + | ||
- | DefVar $ExitCode$ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ; | + | |
- | + | ||
- | ShowBitmap /3 " | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | ;show $ProductPicture$ and $ProductName$ | ||
+ | ShowBitmap /3 " | ||
sub " | sub " | ||
Line 404: | Line 150: | ||
<code winst> | <code winst> | ||
- | ; | + | ; |
- | DefVar $UninstallCommand$ | + | 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 | ||
- | ;Variable für die jeweilige Version. Wird aus der Registry | + | ;deinstall Adobe Air 2.6.0.19120, if found in Registry |
- | DefVar | + | Set $DisplayName$ |
+ | 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 | ||
- | ;Adobe Air 2.5.1.17730 deinstallieren, | + | ;deinstall |
- | Set $DisplayName$ = GetRegistrystringvalue32(" | + | Set $DisplayName$ = GetRegistrystringvalue32(" |
- | if not ($DisplayName$ = "" | + | if not ($DisplayName$ = "" |
- | + | Message " | |
- | Message " | + | set $UninstallCommand$ = " |
- | set $UninstallCommand$ = " | + | Winbatch_Uninstall |
- | Winbatch_Uninstall | + | sub " |
- | sub " | + | endif |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
- | ;Adobe Air 2.6.0.19120 deinstallieren, | + | |
- | Set $DisplayName$ = GetRegistrystringvalue32(" | + | |
- | if not ($DisplayName$ = "" | + | |
- | + | ||
- | Message " | + | |
- | set $UninstallCommand$ = " | + | |
- | Winbatch_Uninstall | + | |
- | sub " | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
- | ;Adobe Air 2.6.0.19140 deinstallieren, | + | |
- | Set $DisplayName$ = GetRegistrystringvalue32(" | + | |
- | if not ($DisplayName$ = "" | + | |
- | + | ||
- | Message " | + | |
- | set $UninstallCommand$ = " | + | |
- | Winbatch_Uninstall | + | |
- | sub " | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
- | ;Adobe Air 2.7.x.xxxxx deinstallieren, | + | |
- | Set $DisplayName$ = GetRegistrystringvalue32(" | + | |
- | if not ($DisplayName$ = "" | + | |
- | + | ||
- | Message " | + | |
- | set $UninstallCommand$ = " | + | |
- | Winbatch_Uninstall | + | |
- | sub " | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
- | + | ||
- | ;Adobe Air 3.0.0.4080 | + | |
- | Set $DisplayName$ = GetRegistrystringvalue32(" | + | |
- | if not ($DisplayName$ = "" | + | |
- | + | ||
- | Message " | + | |
- | set $UninstallCommand$ = " | + | |
- | Winbatch_Uninstall | + | |
- | sub " | + | |
- | + | ||
- | endif | + | |
- | + | ||
- | + | ||
[Winbatch_Uninstall] | [Winbatch_Uninstall] | ||
- | + | $UninstallCommand$ | |
- | $UninstallCommand$ | + | |
</ | </ |