not run as admin - 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!

weblingo
Posts: 6
Joined: Mon Mar 15, 2010 3:32 pm

not run as admin

HI guys,
is there anyway whatever that I can prevent the run as administrator dialog box appearing
I dont want my users to have to keep right clicking every time to open my exe from a desktop shortcut

thanks


WL
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: not run as admin

Hi,

This is the Windows OS normal behavior when opening applications which require Administrator privileges. To avoid this you can try making sure that your application doesn't need Administrator privileges to run:
- it does't write data in per-machine locations
- the main application EXE has a manifest with an "As Invoker" execution level

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
weblingo
Posts: 6
Joined: Mon Mar 15, 2010 3:32 pm

Re: not run as admin

thanks cosmin for getting back so quickly!

I dont really understand this tbh..(will read up though)

I do notice that if i click on the exe on the desktop it runs no problem no run as admin dialog.
if i install the same exe file to the progam files folders and create a shortcut on the desktop, it gives me the run as administator dialog......same exe but depending on location different restrictions.

i dont get it, if the exe was writing as per machine basis or a "as invoker" manifest, surley it would bring up the dialog
run as admin...wherever it was launched.

cheers

WL
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: not run as admin

Hi,

As Cosmin said to make sure that your application doesn't need Administrator privileges to run you don't have to access machine locations.

"Program Files" is a machine location so it is normal for the permission dialog to appear.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”