Click here to Skip to main content
15,667,466 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed one software and created setup of it.

When we install that software using setup, it will create one shortcut of it on desktop
and one shortcut of it in start menu.

Now what i want that it will show "Run as administrator" option on right click of that
"Desktop shortcut"

I want to "Run as administrator" option here.

Desktop Shortcut

I have check that it is showing this option in Program files where i have installed the software.

Program Files

I want same kind of option on Desktop Shortcut.

this is my setup project file system

Setup project file system

Setup project file system

What I have tried:

try several thing like changing shortcut properties but nothing works
Updated 5-Mar-22 1:19am

1 solution

Share this answer
Devendra Sarang 5-Mar-22 7:27am    
but we cant do this from our visual studio setup project ?
OriginalGriff 5-Mar-22 8:09am    
Not as far as I know: it's a security thing, it needs the user to approve it not the developer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900