#513 shortcut run as admin, run in compatibility mode

2.0 Series
General (118)

please add abiility to create shortcuts which can
- run as administrator (in XP, it's called "run with different credentials", but that feature may not be available in home edition or media center edition 2005)
- run in compatibility mode (this means earlier versions of windows. for windows 7, 8, and vista, this means XP. for XP, this means 9x/me, don't know what it means for 2000)

I must confess that these 2 features only work on vista and above. I have XP. some ability to turn a feature like this on and off would be nice.


  • Jim Michaels

    Jim Michaels - 2012-05-18

    strike that phrase "I must confess that these 2 features only work on vista and above."
    this is in XP, and is probably in just about every version of windows.

  • Anders

    Anders - 2012-05-19

    This is not a good idea and not something we should support IMHO.

    Setting the "run as admin" checkbox has a documented flag in the .lnk and there are two ways to do this with NSIS already: http://forums.winamp.com/showthread.php?t=319628 but setting this flag on a shortcut seems a bit silly to me, what if the user runs the program directly or create their own shortcut? It is much better to have the program itself request this.

    The compatibility stuff is stored in a undocumented registry key AND those settings really belong to the user and not for general usage by programs. There is nothing for NSIS to add support for here, just write the registry value on your own if you really think you need it.

    The compatibility tab was added in XP IIRC

  • Jim Michaels

    Jim Michaels - 2012-05-22

    there are some apps that need admin rights, such as XAMPP web server's control panel. when you start and stop Apache web service and the other services with it does the equivalent of "net stop Apache2.2" or "net start Apache2.2" which can only be done with Administrator rights.

    this is why it's useful. xampp cannot currently be installed on vista and above because of the lack of ability to make shortcuts run as administrator. yeah, on windows vista/7/8 UAC will complain, but you get past that and then the control panel works great and you can do your work finally.

    personally I think this kind of feature should be built into CreateShortCut.
    I shouldn't have to do the unintuitive thing and look for a forum article on how to create a shortcut. too bad I am finding there are 3 or 4 methods for creating shortcuts. wouldn't surprise me if there are more..... ack. somebody put the links in the manual please.

  • Anders

    Anders - 2012-05-22

    This net stop issue exists on all versions of NT, you just never tested as non-admin on < Vista! IMHO the XAMPP people should fix their bug, UAC is here to stay.

    Even if we did add support for setting the .lnk flag, its behavior is not the same on 2000/XP and Vista/7, very confusing and unpredictable (And I have no clue what happens if UAC is off)

  • Anders

    Anders - 2016-12-29
    • status: open --> wont-fix

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks