Jump to content

Recommended Posts

Posted

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?

Posted

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

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...