Difference between revisions of "Adobe Air"
(→Disable EULA Acceptance) |
|||
Line 45: | Line 45: | ||
Just make 2 text files under the %AppData%\Adobe\AIR | Just make 2 text files under the %AppData%\Adobe\AIR | ||
− | <source lang=" | + | <source lang="vb"> |
Dim objFSO, objFile | Dim objFSO, objFile | ||
Line 66: | Line 66: | ||
</source> | </source> | ||
− | |||
== Deploy Adobe AIR Applications == | == Deploy Adobe AIR Applications == |
Revision as of 10:05, 5 June 2012
Silent installer for Adobe AIR.
Contents
Download
Adobe AIR is available from Adobe, but you will need to apply for a free licencse to distribute it legally.
Adobe AIR 3.2
The -eulaAccepted
switch is optional, but prevents the user from having to accept Adobe's EULA when starting AIR for the first time.
<packages>
<package id="adobeair"
name="Adobe AIR"
revision="%version%"
priority="10">
<variable name="version" value="3.2.0.2070" />
<check type="uninstall" condition="versionequalto" path="Adobe AIR" value="%version%" />
<install cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted' />
<upgrade cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -uninstall' />
<upgrade cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -silent -eulaAccepted' />
<remove cmd='%SOFTWARE%\adobeair\AdobeAIRInstaller.exe -uninstall' />
</package>
</packages>
Disable Automatic Update
Adobe AIR automatically checks for updates and prompts the user to install them, which needs Administrator privileges.
You can use the AIR SettingsManager to change that on a per-user basis or disable this behaviour globally for all users by adding a DWORD value named UpdateDisabled to the HKLM\Software\Policies\Adobe\AIR
registry key, and setting this value to 1 (According to Adobe AIR Administrator's Guide).
This can also be done through WPKG:
<install cmd='REG ADD "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /d 1 /f /t REG_DWORD' />
<upgrade cmd='REG ADD "HKLM\SOFTWARE\Policies\Adobe\AIR" /v UpdateDisabled /d 1 /f /t REG_DWORD' />
Disable EULA Acceptance
Just make 2 text files under the %AppData%\Adobe\AIR
Dim objFSO, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
If Not (objFSO.FolderExists(Session.Property("AppDataFolder") & "\Adobe")) Then objFSO.CreateFolder Session.Property("AppDataFolder") & "\Adobe"
If Not (objFSO.FolderExists(Session.Property("AppDataFolder") & "\Adobe\AIR")) Then objFSO.CreateFolder Session.Property("AppDataFolder") & "\Adobe\AIR"
If (objFSO.FolderExists(Session.Property("AppDataFolder") & "\Adobe\AIR")) Then
Set objFile = objFSO.CreateTextFile(Session.Property("AppDataFolder") & "\Adobe\AIR\UpdateDisabled", True) : objFile.Close
Set objFile = objFSO.CreateTextFile(Session.Property("AppDataFolder") & "\Adobe\AIR\eulaAccepted", True) : objFile.WriteLine("2") : objFile.Close
End If
Set objFSO = Nothing
Deploy Adobe AIR Applications
See this blog entry from Adobe to get a few hints on how to deploy Adobe AIR applications through WPKG.
Basically you can just run Adobe AIR Installer.exe -silent <Application>.air
or add the following switches:
- -silent
- required to run without user interaction during installation
- -desktopShortcut
- adds a desktop shortcut for the AIR application
- -programMenu
- adds a Start Menu shortcut for the AIR application