Skip navigation
Currently Being Moderated

Runas and Adobe Application Air 2.x?

Apr 20, 2011 8:05 AM

Hello dear people,


I have been found this trick of RUNASADMIN or EVELATEDPROCESS this url:


Look Step: "OPTION THREE" and Manually in Registry Editor



I think sure becasue we are suing with Adobe Application AIr 2.x via Administrative rights for Windows Vista and 7....


Like this Code: But i am not finish this code. I am not sure when you are sure for xml and regkey files?



     Runas to Application Air
     Support for Windows Vista and Windows 7
     import flash.desktop.NativeProcessStartupInfo;
     import flash.filesystem.File;
     import flash.filesystem.FileStream;

     public class StartRunAs
          public var RunasXML:File = new File(var xml:XML = <runas>runasCall()</runas>);
          public var smDir_Runas:File = File.applicationStorageDirectory;
          public var runas_reg_key:File = File.applicationStorageDirectory.resolvePath("runas.reg");
          public function StartRunAs():void
               // Copy from ApplicationDirectory
                    function runasCall():void
                              function runas_Addreg():void
                                   // Start regedit with runas.reg
                                   var regeditApp:NativeProcessStartupInfo = new NativeProcessStartupInfo("C:\\Windows\\regedit.exe");
                                   regeditApp.arguments = runas_reg_key;
                                   // Delete startfiles - if you are assigned by UAC readly.
                              // Write reg file:
                              var runas_reg_key_Stream:FileStream = new FileStream();
                                   "Windows Registry Editor Version 5.00" +
                                   "" +
                                   '"' + File.applicationDirectory() + 'myapp.exe"' + '="RUNASADMIN"'
                              // Execute to regedit add reg file 
          protected function SkipInit():void
               // Now Your application with adminstrative rights 



If your runas.reg should see a result: Like this:


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files (x86)\\MyApp Air\\Myapp.exe"="RUNASADMIN"


Than Adobe Application Air calls NativeProcessStartInfo with "Regedit.exe runas.reg" and it will to change in administrative mode with Application Air 2.x.

Than you can close Application Air and you click Shutcut from Desktop. What does it happen? Now Application Air starts with administrative privatages and you prompt "Yes" and Application Air loads and can rewrite in the directory C:\Program Files x(86)\MyApp\


Did you think sure? That is a nice trick once UAC with read/write mode of Application Air for example:

Plugins and templates will to copy in ApplicationDirectory Example: C:\Program Files x(86)\\MyApp\plugins or C:\Program Files x(86)\\MyApp\templates


That is a good suggestion of my access rewriting! Do not worry , dear Windows Users!!!!


I have been tired nice FileStream with process


I hope you because you can improve or add suggestions We can work together


Thanks best regards, SnakeMedia


That is an example for assignned regkey once Adobe Application Air to adminstrative Application Air like any programs CCleaner or TuneUp Utilities 2011...


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