Page 1 of 1

Run as Administrator

Posted: Tue Nov 22, 2016 9:44 am
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.

Re: Run as Administrator

Posted: Wed Nov 23, 2016 6:13 am
by Leo
You can only launch apps (with admin rights) from the setup program using System \ Commands.

Re: Run as Administrator

Posted: Wed Nov 23, 2016 10:31 am
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

Re: Run as Administrator

Posted: Wed Nov 23, 2016 4:14 pm
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.

Re: Run as Administrator

Posted: Wed Nov 23, 2016 5:03 pm
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

Re: Run as Administrator

Posted: Sat Nov 26, 2016 12:24 pm
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