Creating Shortcut with "Extended"/"Run 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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Creating Shortcut with "Extended"/"Run as Administrator"

Hello everyone.

Is it possible to create a shortcut with the "Run as Administrator" flag set from within AI/Windows Installer?



With best regards

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

Re: Creating Shortcut with "Extended"/"Run as Administrator"

Hi Clemens,

I'm afraid that this cannot be done through a shortcut. However, you can try embedding a manifest in your application in order to make it require Administrator privileges.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Creating Shortcut with "Extended"/"Run as Administrator"

Hello Cosmin,

my shortcut refers to msiexec.exe, to deinstall the application. I cannot change that file.

But it seems I made a mistake in testing, because when I installed and deinstalled again it worked as expected, bringing up an elevation prompt at some point, under Vista.

Thanks anyway, Cosmin.



With best regards

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

Re: Creating Shortcut with "Extended"/"Run as Administrator"

Hi Clemens,

Please note that an uninstall process automatically prompts for elevation if it requires it (it doesn't prompt only when it doesn't require Administrator privileges).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”