Jump to content
Sign in to follow this  
fokewe

Creating Shortcut with RAA enabled

Recommended Posts

fokewe

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?

Share this post


Link to post
Share on other sites
JScript

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!

Share this post


Link to post
Share on other sites
fokewe

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.