Create Shortcut setup to 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!

ezseonews
Posts: 2
Joined: Wed Dec 30, 2009 8:48 am

Create Shortcut setup to run as administrator?

Hi
When Advanced Installer creates the shortcuts to an exe file, is it possible to get it to create the shortcut to always be launched as administrator?

I am trying to implement an auto-update feature in my software, but for the renaming and deleting of the old EXE to work, the software must be run as Administrator in the first place. I can instruct my customers to set the shortcut permissions manually so they always run as admin, but it would be easier if I could just create the shortcut that way using the installer.

Alternatively, anyone got any other solution? I am kind of new to Vista User Accounts

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

Re: Create Shortcut setup to run as administrator?

Hi,
When Advanced Installer creates the shortcuts to an exe file, is it possible to get it to create the shortcut to always be launched as administrator?
I'm afraid that this is not supported by Windows Installer or by Advanced Installer.
I am trying to implement an auto-update feature in my software, but for the renaming and deleting of the old EXE to work, the software must be run as Administrator in the first place.
Please note that the correct approach is this:
- the update feature downloads and launches an update package
- the update automatically requests the execution level it needs

You can try using the Auto Updater. It runs without requiring Administrator privileges and lets the update package handle the privileges (for MSI packages the elevation prompt is shown automatically when needed).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ezseonews
Posts: 2
Joined: Wed Dec 30, 2009 8:48 am

Re: Create Shortcut setup to run as administrator?

Thanks Cosmin - most helpful. I'll give it a try.

Return to “Common Problems”