This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Shortcut that Runs as Administrator
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2007
03:54 AM
Shortcut that Runs as Administrator
Does anyone know if I can predefine a shortcut that runs a program as administrator in Windows Vista??
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2007
08:57 AM
Look here http://community.macrovision.com/showpost.php?p=393434&postcount=1
Now I need more info on a manifest.
So look here http://windowsvistablog.com/blogs/windowsvista/archive/2007/01/25/accessible-uac-prompts.aspx
The app that you need to launch using the shortcut should also have an the requiredExecutionLevel set to Administrator in it's manifest. This will prompt the permission elevation dialog when you click the shortcut.
Now I need more info on a manifest.
So look here http://windowsvistablog.com/blogs/windowsvista/archive/2007/01/25/accessible-uac-prompts.aspx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2007
12:49 PM
A user can configure any Start menu shortcut to run as an administrator from the Compatibility tab in the Properties page for that shortcut. This setting causes the system to request privilege elevation upon clickign the shortcut, regardless of whether or not the executable was built with a manifest to require elevation. If this setting is available for a shortcut, then it should be settable programatically. If it is settable programatically, there should be a way to do so either with MSI attributes, or with reg entries or some system call.
Does anybody know about any of the above?
Thanks.
Does anybody know about any of the above?
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2007
05:09 PM
I ran across a post once on an MSDN forum about how to set this through IShellLinkDataList. There's nothing you can put in an MSI table for it, though. In general the best bet is to set it in the manifest if at all possible.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 16, 2007
07:51 AM
For some reason, this seems to make our tools not run on XP...or maybe development was just trying to push this responsiblity on the release guy. 😄
I'll look at IShelLinkDataList, and post the solution if i find one.
Thanks again, Michael!
I'll look at IShelLinkDataList, and post the solution if i find one.
Thanks again, Michael!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
03:42 AM
thanks for all your comments. I meant the shortcut without any manifest, but I understand there really is not any property I can use.