Run as Administrator

Common questions about using Actual Installer.
Post Reply
Always Learning
Posts: 9
Joined: Sat Sep 04, 2010 4:44 pm

Run as Administrator

Post by Always Learning »

Hi There,

Am I able to set the applications .exe to "Run as Administrator" using Actual Installer.

Thanks for your help.

Best Regards,

Steve.
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Run as Administrator

Post by Leo »

You can only launch apps (with admin rights) from the setup program using System \ Commands.
Leo,
Actual Installer Team
https://www.actualinstaller.com
ggrewe
Posts: 25
Joined: Mon Nov 30, 2015 5:50 pm

Re: Run as Administrator

Post by ggrewe »

Steve,

I am curious as to why you need your application to run as an administrator? If you are writing to the registry, then be sure to use HKCU at run time. At install time, use HKLM, which is read only at run time. If you are writing files to the installation folder, then consider using either the %ALLUSERPROFILE% or the %USERPROFILE% folder.

If it is something else, can you let us know what that is? If your application requires Administrative privileges to run, you should be able to redesign the application so those privileges are not required.

Greg
Always Learning
Posts: 9
Joined: Sat Sep 04, 2010 4:44 pm

Re: Run as Administrator

Post by Always Learning »

Hi There,

It's because I have a .dll I need to register when installing and I am assuming I need to be administrator to do that.

Best Regards,

Steve.
ggrewe
Posts: 25
Joined: Mon Nov 30, 2015 5:50 pm

Re: Run as Administrator

Post by ggrewe »

Steve,

You can do this during the installation, so that it does not have to be done when the software runs. In the left hand pane, under "Project" click the "Register" option, click the "Other" tab, click the "Add" button, select the "File" that you want to register, and then select the type of file to Register.

I hope this helps.

Greg
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Run as Administrator

Post by Leo »

Greg, thank you so much!
You right, DLLs should be registered during installation.

Anyway, if anyone needs to make the EXE file to be run as administrator (outside the installer), here is described how to do it:
http://www.actualinstaller.com/forum/vi ... f=2&t=3009
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply