Shortcuts with Admin Privilege in Vista - 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!

vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Shortcuts with Admin Privilege in Vista

Hi!

I've developed an MSI for VISTA (Ultimate) using AI 6.4.1 and developing an enterprise project on Windows-XP (SP2), using Visual Studio 6.0.

This MSI is working fine except one thing that when i click on a shortcut it does not work properly, but, when i right click on shortcut and choose "Run as Administrator" then everything goes fine.

How, could i make my shortcuts with admin privileges by default?

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

Re: Shortcuts with Admin Privilege in Vista

Hi Vicky,

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
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: Shortcuts with Admin Privilege in Vista

Hi Cosmin!

Thanks for ur reply. i did try
mt.exe –manifest temp.manifest –outputresource:YourApp.exe;#1. , with my .exe, but mt.exe says "nothing to do" in output. what is wrong with this command? I don't have VS2005/2008, so unable to do other methods to insert .manifest using VS6.0.

is there any other way to do insert .manifest file? And, please provide a .manifest file to insert.

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

Re: Shortcuts with Admin Privilege in Vista

Hi Vicky,
i did try mt.exe –manifest temp.manifest –outputresource:YourApp.exe;#1. , with my .exe, but mt.exe says "nothing to do" in output. what is wrong with this command?
Is "temp.manifest" a valid manifest for your application? Please note that the manifest file must be configured for your application before it can be embedded in it.
please provide a .manifest file to insert.
I'm afraid that I cannot provide a manifest file for your application because it needs to contain information related to your application. Please read the article I mentioned. In it you can find some sample manifest files which can be adapted to your application.

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

Return to “Common Problems”