fokewe Posted August 12, 2009 Share Posted August 12, 2009 I've been searching for hours and have not seen this posted. I have a program which installs some shortcuts but the problem is that on Windows 2008, each .lnk file needs to have 'Run As Administrator' set for the app to run correctly. Can this setting be enabled through the FileCreateShortcut or other command? Link to comment Share on other sites More sharing options...
JScript Posted August 13, 2009 Share Posted August 13, 2009 I've been searching for hours and have not seen this posted. I have a program which installs some shortcuts but the problem is that on Windows 2008, each .lnk file needs to have 'Run As Administrator' set for the app to run correctly. Can this setting be enabled through the FileCreateShortcut or other command? Try this: #RequireAdmin This function was primarily aimed at allowing AutoIt scripts to work correctly with Windows Vista User Account Control (UAC) (However, will also work on Windows 2000 and Windows XP). http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
fokewe Posted August 13, 2009 Author Share Posted August 13, 2009 I'm not trying to circumvent UAC. I am trying to create a shortcut with the "run as administrator" setting chosen. The program that the shortcut points to is NOT an Autoit script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now