Skip to main content
Participant
November 22, 2011
Question

Is there someone smart enought to get Administrator Privileges in native installer?

  • November 22, 2011
  • 2 replies
  • 654 views

Hi!

I built an application that is regulary updated with new product thumbnails and price tables. Since it's only possible to update them with administrator privileges, because they are located in the instalation directory, is there any way to force the application to run in administrator mode?

I know that this is possible by changing the level to "requireAdministrator" in the following manifest attached to the executable that launches the swf:

     <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

         <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">

             <security>

                 <requestedPrivileges>

                     <requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>

                 </requestedPrivileges>

             </security>

         </trustInfo>

         <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">

             <application>

                 <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>

                 <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"></supportedOS>

             </application>

         </compatibility>

     </assembly>

But I still don't know how to pack again the application to have the digital signatures and other specific settings.

Other solution that I have is to only work with the storage directory of the application. For that I think I don't need administator privileges to manage files, but the only way to get the initial thumbnails and price tables is to copy them from the installation directory to the storage folder at the first run. Is there another way to get the files installed directly to the application-specific storage directory of all users?

Thanks.

This topic has been closed for replies.

2 replies

Paul Istoan
Participating Frequently
August 26, 2018

Hello there. I have the same problem. Just wandering how did you manage to fix this issue with files not being able to be loaded and saved to the install directory.

chris.campbell
Community Manager
Community Manager
November 23, 2011

I think your idea of copying the files to the storage directory on first launch is the best one.  The AIR installer does not have the capability of doing this for you.  However, another alternative is to create your own installer with it's own logic.  Take a look at this ADC article:

Installation and Deployment Options in AIR 3

Chris