User Tools

Site Tools


userspace:adobe_air

Differences

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

Link to this comparison view

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://get.adobe.com/de/air/ \\
 +
 +**Attention:** This script calls a subfunction for the exitcodes from %ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins
  
 Installation Script for Adobe Air \\ Installation Script for Adobe Air \\
Line 11: Line 15:
  
 This script uses the check_msi-exitcode script: https://forum.opsi.org/wiki/userspace:check_msi-exitcode \\ This script uses the check_msi-exitcode script: https://forum.opsi.org/wiki/userspace:check_msi-exitcode \\
- 
-The installation file can be downloaded from: http://get.adobe.com/de/air/ \\ 
- 
 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 "%SCRIPTPATH%\Files" \\ Open the temp folder of your user profile and copy the complete content of the temporary installation folder (named something like AIR75.tmp) to "%SCRIPTPATH%\Files" \\
  
 +Another way to extract the msi file would be to simply extract it from the downloaded installer via a tool like 7-Zip.
  
 +**Tree**
 +<code>
 +CLIENT_DATA
 +  ├ Install.ins
 +  ├ Uninstall.ins
 +  ├ SubUninstall.ins
 +  ├ adobe_air.png
 +  └ Files
 +     └ setup.msi  
 +</code>
  
 ==== 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 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
- +
-;Loglevel einstellen +
- +
- setLogLevel = 6 +
- +
- +
- +
- +
- +
- +
- +
-;Bei Fehlern abbrechen +
- +
- ExitOnError = false +
- +
- +
- +
- +
- +
- +
- +
-;Syntax Fehler werden in einem separaten Fenster angezeigt +
- +
- ScriptErrorMessages = on +
- +
- +
- +
- +
- +
- +
- +
-;Single-Step Mode nicht verwenden +
- +
- 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$ = "adobe_air.png"
- +
- 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" +
- +
- +
- +
- +
- +
- +
- +
-;Vollständiger Produktname incl. Versionsnummer +
- +
- DefVar $ProductNameFull1$ +
- +
- set $ProductNameFull1$ = "Adobe Air 3.0.0.4080" +
- +
- +
- +
- +
- +
- +
- +
-;Dateiname des Produktbildes mit Erweiterung +
- +
- DefVar $ProductPicture$ +
- +
- Set $ProductPicture$ = "adobe_air.png" +
- +
- +
- +
- +
- +
- +
- +
-;Dateinamen der zu installierenden MSI-Pakete +
- +
- DefVar $Executable1$ +
- +
- Set $Executable1$ = "setup.msi" +
- +
- +
- +
- +
- +
- +
- +
-;Die Variable zur Auswertung des ExitCodes +
- +
- DefVar $ExitCode$ +
- +
- +
- +
- +
- +
- +
- +
-;Prüfen der Winst Version +
- +
- requiredWinstVersion >= "4.11" +
- +
- +
- +
- +
- +
- +
- +
-;$ProductPicture$ und $ProductName$ anzeigen +
- +
- ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$ +
- +
- +
- +
- +
- +
- +
- +
-;Freien Speicherplatz ermitteln +
- +
- if not (HasMinimumSpace ("%SYSTEMDRIVE%", "500 MB")) +
- +
- LogError "Nicht genügend Platz auf %SYSTEMDRIVE%" +
- +
- isFatalError +
- +
- endif +
- +
- +
- +
- +
- +
- +
- +
-;OS-Version ermitteln +
- +
- if ( $NTVersion$ = "Win2K" OR $NTVersion$ = "WinXP" OR $NTVersion$ = "Win NT 5.2" OR $NTVersion$ = "Windows Vista" ) +
- +
- +
- +
- +
- +
- +
- +
- ;Deinstallation alter Versionen +
- +
- sub "%ScriptPath%\SubUninstall.ins" +
- +
- +
- +
- +
- +
- +
- +
- Message "Installiere "+$ProductNameFull1$ +
- +
- Winbatch_Install +
- +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- +
- +
- +
- +
- +
- +
- else +
- +
- LogError "Kein kompatibles Betriebssystem installiert" +
- +
- isFatalError +
- +
- endif +
- +
- +
- +
  
 +;filename of MSI-package which has to be installed
 +DefVar $Executable1$
 +Set $Executable1$ = "setup.msi"
  
 +;the variable for the ExitCode
 +DefVar $ExitCode$
  
 +;Check the winst-version
 +requiredWinstVersion >= "4.11"
  
 +;show $ProductPicture$ and $ProductName$
 +ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
  
 +;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" )
 + ;Deinstall of old versions
 + sub "%ScriptPath%\SubUninstall.ins"
 + Message "Installiere "+$ProductNameFull1$
 + Winbatch_Install
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 +else
 + LogError "Kein kompatibles Betriebssystem installiert"
 + isFatalError
 +endif
  
 [Winbatch_Install] [Winbatch_Install]
- +msiexec /i "%SCRIPTPATH%\Files\$Executable1$" /qb-!
- +
- +
- msiexec /i "%SCRIPTPATH%\Files\$Executable1$" /qb-! +
 </code> </code>
  
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 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
- +
- +
-;Loglevel einstellen +
- +
- setLogLevel = 6 +
- +
- +
- +
- +
- +
- +
- +
-;Bei Fehlern abbrechen +
- +
- ExitOnError = false +
- +
- +
- +
- +
- +
- +
- +
-;Syntax Fehler werden in einem separaten Fenster angezeigt +
- +
- ScriptErrorMessages = on +
- +
- +
- +
- +
- +
- +
- +
-;Single-Step Mode nicht verwenden +
- +
- 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$ = "adobe_air.png"
  
-;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$ = "adobe_air.png" +
- +
- +
- +
- +
- +
- +
- +
-;Die Variable zur Auswertung des ExitCodes +
- +
- DefVar $ExitCode$ +
- +
- +
- +
- +
- +
- +
- +
-;$ProductPicture$ und $ProductName$ anzeigen +
- +
- ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$ +
- +
- +
- +
- +
- +
- +
- +
- +
  
 +;show $ProductPicture$ and $ProductName$
 +ShowBitmap /3 "%scriptpath%\" + $ProductPicture$ $ProductName$
  
 sub "%ScriptPath%\SubUninstall.ins" sub "%ScriptPath%\SubUninstall.ins"
Line 404: Line 150:
 <code winst> <code winst>
  
-;Variable für den msiexec Aufruf zur Deinstallation +;Variable for msiexec-call of deinstallation 
- DefVar $UninstallCommand$+DefVar $UninstallCommand$
  
 +;Variable for the diffrent versions gotten from the registry
 +DefVar $DisplayName$
  
 +;deinstall Adobe Air 2.5.1.17730, if found in Registry
 +Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{46C045BF-2B3F-4BC4-8E4C-00E0CF8BD9DB}] DisplayName")
 +if not ($DisplayName$ = "")
 + Message "Deinstalliere "+$DisplayName$
 + set $UninstallCommand$ = "MsiExec.exe /x {46C045BF-2B3F-4BC4-8E4C-00E0CF8BD9DB} /qb-! REBOOT=ReallySuppress"
 + Winbatch_Uninstall
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 +endif
  
-;Variable für die jeweilige VersionWird aus der Registry ausgelesen +;deinstall Adobe Air 2.6.0.19120, if found in Registry 
- DefVar $DisplayName$+Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AFF7E080-1974-45BF-9310-10DE1A1F5ED0}] DisplayName"
 +if not ($DisplayName$ = ""
 + Message "Deinstalliere "+$DisplayName$ 
 + set $UninstallCommand$ = "MsiExec.exe /x {AFF7E080-1974-45BF-9310-10DE1A1F5ED0} /qb-! REBOOT=ReallySuppress" 
 + Winbatch_Uninstall 
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
 +endif
  
 +;deinstall Adobe Air 2.6.0.19140, if found in Registry
 +Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AFF7E080-1974-45BF-9310-10DE1A1F5ED0}] DisplayName")
 +if not ($DisplayName$ = "")
 + Message "Deinstalliere "+$DisplayName$
 + set $UninstallCommand$ = "MsiExec.exe /x {AFF7E080-1974-45BF-9310-10DE1A1F5ED0} /qb-! REBOOT=ReallySuppress"
 + Winbatch_Uninstall
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 +endif
  
 +;deinstalll Adobe Air 2.7.x.xxxxx, if found in Registry
 +Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FDB3B167-F4FA-461D-976F-286304A57B2A}] DisplayName")
 +if not ($DisplayName$ = "")
 + Message "Deinstalliere "+$DisplayName$
 + set $UninstallCommand$ = "MsiExec.exe /x {FDB3B167-F4FA-461D-976F-286304A57B2A} /qb-! REBOOT=ReallySuppress"
 + Winbatch_Uninstall
 + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins"
 +endif
  
  
  
-;Adobe Air 2.5.1.17730 deinstallieren, wenn es in der Registry gefunden wurde +;deinstall Adobe Air 3.0.0.4080, if found in Registry 
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{46C045BF-2B3F-4BC4-8E4C-00E0CF8BD9DB}] DisplayName"+Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ACEB2BAF-96DF-48FD-ADD5-43842D4C443D}] DisplayName"
- if not ($DisplayName$ = ""+if not ($DisplayName$ = ""
- + Message "Deinstalliere "+$DisplayName$ 
- Message "Deinstalliere "+$DisplayName$ + set $UninstallCommand$ = "MsiExec.exe /x {ACEB2BAF-96DF-48FD-ADD5-43842D4C443D} /qb-! REBOOT=ReallySuppress" 
- set $UninstallCommand$ = "MsiExec.exe /x {46C045BF-2B3F-4BC4-8E4C-00E0CF8BD9DB} /qb-! REBOOT=ReallySuppress" + Winbatch_Uninstall 
- Winbatch_Uninstall + sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" 
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +endif
- +
- endif +
- +
- +
- +
-;Adobe Air 2.6.0.19120 deinstallieren, wenn es in der Registry gefunden wurde +
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AFF7E080-1974-45BF-9310-10DE1A1F5ED0}] DisplayName"+
- if not ($DisplayName$ = ""+
- +
- Message "Deinstalliere "+$DisplayName$ +
- set $UninstallCommand$ = "MsiExec.exe /x {AFF7E080-1974-45BF-9310-10DE1A1F5ED0} /qb-! REBOOT=ReallySuppress" +
- Winbatch_Uninstall +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- endif +
- +
- +
- +
-;Adobe Air 2.6.0.19140 deinstallieren, wenn es in der Registry gefunden wurde +
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AFF7E080-1974-45BF-9310-10DE1A1F5ED0}] DisplayName"+
- if not ($DisplayName$ = ""+
- +
- Message "Deinstalliere "+$DisplayName$ +
- set $UninstallCommand$ = "MsiExec.exe /x {AFF7E080-1974-45BF-9310-10DE1A1F5ED0} /qb-! REBOOT=ReallySuppress" +
- Winbatch_Uninstall +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- endif +
- +
- +
- +
-;Adobe Air 2.7.x.xxxxx deinstallieren, wenn es in der Registry gefunden wurde +
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FDB3B167-F4FA-461D-976F-286304A57B2A}] DisplayName"+
- if not ($DisplayName$ = ""+
- +
- Message "Deinstalliere "+$DisplayName$ +
- set $UninstallCommand$ = "MsiExec.exe /x {FDB3B167-F4FA-461D-976F-286304A57B2A} /qb-! REBOOT=ReallySuppress" +
- Winbatch_Uninstall +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- endif +
- +
- +
- +
-;Adobe Air 3.0.0.4080 deinstallierenwenn es in der Registry gefunden wurde +
- Set $DisplayName$ = GetRegistrystringvalue32("[HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ACEB2BAF-96DF-48FD-ADD5-43842D4C443D}] DisplayName"+
- if not ($DisplayName$ = ""+
- +
- Message "Deinstalliere "+$DisplayName$ +
- set $UninstallCommand$ = "MsiExec.exe /x {ACEB2BAF-96DF-48FD-ADD5-43842D4C443D} /qb-! REBOOT=ReallySuppress" +
- Winbatch_Uninstall +
- sub "%ScriptDrive%\install\check_exitcode\check_msi-exitcode.ins" +
- +
- endif +
- +
- +
  
  
 [Winbatch_Uninstall] [Winbatch_Uninstall]
- +$UninstallCommand$
- $UninstallCommand$+
  
 </code> </code>
userspace/adobe_air.1318253515.txt.gz · Last modified: 2021/08/23 08:37 (external edit)