3 Replies Latest reply on Jul 30, 2009 11:31 AM by George Meng

    Changing the default installation settings in AIR installer

    Jason175

      I was wondering if there is a way to change the default settings the the AIR Installer uses when installing an Application that I created.

       

      More specifically, when the user is going through the installation process for my application using the AIR Installer, I would like the default setting to be to NOT launch the application once the install is completed.

       

      The reason for this is that my application is intended to only be launched by opening a file with the associated type. When it is launched with either no command line arguments, or invalid ones, the user is given an error message telling them that a file name is expected, and the application is terminated.

      I do not want the user to receive this message immediately following installation (if they do not change the "launch after installation" to NO).

       

      Is this possible? If not, does anyone have a suggestion to avoid this problem?

       

      Thanks a lot,

      Jason

        • 1. Re: Changing the default installation settings in AIR installer
          George Meng

          Hi Jason,

           

          There is a "First time" concept in AIR application (http://help.adobe.com/en_US/AIR/1.5/devappsflex/devappsflex.pdf).

          Suggest you add a piece of logic in your application before checking arguments: if it is first time to run the application, shut it down right away.

           

          Let us know if you find good solutions.

           

          George

          1 person found this helpful
          • 2. Re: Changing the default installation settings in AIR installer
            Jason175 Level 1

            George,

            Thanks a lot, that is very helpful.

             

            To solve my problem I am going to use that method (Create a new file @ startup, see if it exists, and if it does not exist then it is the first time running) and tweak it a little to solve my exact problem.

            I need to be sure that the application is being run after installation (from the installer), because the user MAY select "do not run after install", in which case the first time they try to run the program by opening an associated file, the program will exit, which is not a good first impression to leave on the user.

             

            So I will check if the file exists created and if then i will check if arguments (file name) is being passed.

            1. If a file name argument is passed I'll create the file and continue running to program. - First time run, but not from installer.

            2. If no argument is present and it is the first time, I will shut down immediately with no message. - First time running/run from installer.

            3. If no argument is present and file exists, exit with error (file needed). - Not the first time run, but no argument passed.

            4. If argument exists and and file exists, run program. - Normal execution.

            • 3. Re: Changing the default installation settings in AIR installer
              George Meng Level 1

              Thanks for letting us know your solutions. It sounds like a good plan.

               

              George