Skip navigation
Currently Being Moderated

AIR runtime and AIR applications built using Captive Runtime still need Admin Privilege to Install

Mar 16, 2012 1:14 PM

I am working on a small project to install AIR application(native .exe & .dmg) with AIR runtime without needing the Administrator privilege so I used Captive runtime but the installation is still asking for admin privilege

 

I bundled AIR application with AIR runtime using Captive runtime from flash builder 4.6, then I packaged this into a .MSI using Advanced Installer. Now when I install it for a user without admin privilege it prompts me for Admin credentials.

 

 

Can you please tell me if

1. I need AIR distribution license to install AIR runtime without Admin privilege

2. Do I need a different installer

3. Am I missing any step here

 

 

Thank you

 
Replies
  • Chris Campbell
    8,532 posts
    May 4, 2010
    Currently Being Moderated
    Mar 21, 2012 3:26 PM   in reply to vshare

    Hi,

    You shouldn't need the AIR distribution license for a captive runtime install.  It sounds like you might just be running into a problem with your native installer.  Is the final install location in a protected OS area (like program files)?

     

    Chris

     
    |
    Mark as:
  • Chris Campbell
    8,532 posts
    May 4, 2010
    Currently Being Moderated
    Mar 23, 2012 3:00 PM   in reply to vshare

    If you're installing to a location where Windows requires elevated privileges, like Program Files, you'll need to have admin privileges to continue.  Are you using an AIR based native installer or have you taken the application with the captive runtime and rolled this up in your own installer?

     

    Here's a section from the Installation and deployment options in Adobe AIR 3 article that might help:

     

    Installation privileges

    When designing an installer, one has the option to choose from approaches that may or may not require administrative privilege. For example, a drag-and-drop install on Mac OS X requires no special privilege; users can always copy the application into their own application folders, for which they have the necessary permissions. On the other hand, if registry keys must be written to the machine-specific portion of the registry on Windows, installation of that application will require administrative privilege to do so.

    The two installer formats directly supported by AIR, AIR files and native installers, have always required administrative privilege. This was a design decision made in part to simplify the implementation of the AIR installers: If administrative privilege is assumed to be available, implementation is possible if the registry can be written to, and so on. It was also selected because, in many enterprises, this is the desired behavior: administrators can use the privilege requirement to gate software installation.

    All the same, there are scenarios where supporting installation without requiring administrative privileges is desirable, or even necessary. This can now be achieved using custom installers; you simply need to author an installer that operates correctly with only standard user privilege. In practice this can be easy to achieve; a simple install-by-copy to a writable location (that is, in the user's own folder) will suffice. Should you author a more complex installer, you should keep in mind that the addition of certain operations during the install process will in turn reintroduce the requirement for administrative privileges.

     
    |
    Mark as:
  • Chris Campbell
    8,532 posts
    May 4, 2010
    Currently Being Moderated
    Mar 23, 2012 5:50 PM   in reply to vshare

    Could the app be writing files to locations that might need elevated privileges?  Any chance you could zip your app up and send it to me so I could try it on one of my systems?

     

    Thanks,

    Chris

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points