Running an Executable as Administrator - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jjones
Posts: 68
Joined: Wed Jun 29, 2011 3:30 pm

Running an Executable as Administrator

It is necessary for me to install SQL Express 2008 R2 as a prerequisite to the main application install. However, for this to happen, most of the machines in our organization have to have a permission enabled - SeDebugPrivilege specifically. It's possible to use ntrights.exe to accomplish this but it requires that it be run as administrator.

1. Is it possible to run an .exe as administrator? I've included it as a temporary file but I'm given no other "Execution Options" other than "Immediate Execution"

2. If I build the ntrights.exe call into a .bat file, if I run "Deferred with no impersonation" will that run it "As Administrator"?

Thanks for any input you can give me!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Running an Executable as Administrator

Hello,

Here's Setting "Run as Admin" for third-party exe thread that may help you with this.

Also, at what point exactly do you need the .EXE executed? Is your package output an .EXE or an .MSI?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jjones
Posts: 68
Joined: Wed Jun 29, 2011 3:30 pm

Re: Running an Executable as Administrator

Thank you for the reply. I was able to get it to work. I need it to run before the prerequisites are installed so I just do it when the user clicks 'Next' to go to the next UI dialog.

Return to “Common Problems”