2 Replies Latest reply on Oct 13, 2009 4:46 PM by Kuriakose Jacob Thomas

    Bundled Deployment of Adobe AIR applications in Windows using NSIS (Nullsoft Scriptable Install System)  Two Step Method

    Kuriakose Jacob Thomas

      1.Using the script, we programmatically detect from the registry whether Adobe AIR runtime has been installed.
      2.Installs the Adobe runtime if not previously installed and then install the
      !define PRODUCT_NAME "My Application 2009"
      !define PRODUCT_VERSION "2.1.0"
      !define PRODUCT_PUBLISHER "My Group Pty Ltd"
      Icon "C:\InstallFiles\MyAppIcon.ico"
      OutFile "MyAppInstaller.exe"
      Section -Prerequisites

      SetOutPath "C:\InstallFiles"
      SetOverwrite ifnewer
      ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe AIR" "DisplayVersion"
      IfErrors notinst
      Goto installProgram
      MessageBox MB_YESNO "Install Adobe AIR Runtime?" /SD IDYES IDNO endInstall
      File "AdobeAIRInstaller.exe"
      ExecWait "C:\InstallFiles\AdobeAIRInstaller.exe"
      Goto installProgram

      MessageBox MB_YESNO "Install My Program?" /SD IDYES IDNO endInstall
      File "MyApp.air"
      ExecWait '$PROGRAMFILES\Common Files\Adobe AIR\Versions\1.0\Resources\airappinstaller.exe /C:\InstallFiles\MyApp.air'
      Can someone tell me how I could just cut this script down to a single step so that it does the check whether AIR runtime has been installed and installing the AIR application in one step