Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Elevated Program Shortcut without UAC Prompt - Create


03 Jun 2009   #329
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 
Elevated Program Shortcut without UAC Prompt - Create

How to Create an Elevated Program Shortcut without a UAC Prompt in Windows


...

My System SpecsSystem Spec
28 Jul 2012   #330
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

LOL, posting inbetween each other. I'm happy to hear that you got it sorted.

My System SpecsSystem Spec
06 Aug 2012   #331
FerchogtX

Microsoft Windows 7 Home Premium SP1 64-bit Build 7600 / Microsoft Windows XP Professional SP3
 
 

Nice! I had a program that was bugging me off with UAC (a simple text editor) as it most likely doesn't need it, but with this I can execute without problems and UAC, and even better, somehow runs smootly now (whereas clicking the prompt made the program run slower... O_o).

Just for asking as it is not really important, is there any way to get the program focused while executing? because of the CMD being oppened (no matter if it is minimized or not) the program looses focus... just for asking, if there is no way to get this is not really important.

Thanks for the tutorial Brink!!! You always have something nice and useful for all us

See ya!!!
My System SpecsSystem Spec
06 Aug 2012   #332
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome FerchogtX, and thank you.

The program used for this shortcut should open as the active/focused window by default. The only exception should be if click on something else right after it opens, or have another program/window opening right after it.

What program is this for? I'll be happy to test with it if I'm able to.
My System SpecsSystem Spec
06 Aug 2012   #333
FerchogtX

Microsoft Windows 7 Home Premium SP1 64-bit Build 7600 / Microsoft Windows XP Professional SP3
 
 

Ha, you will make laugh of me, is a program called Fighter Factory Ultimate used to créate MUGEN chars (I do this in my lil' free time),
You can get it from here:
VirtuallTek Systems
Is a lil' harmless program, but needs UAC (????) to execute just because some of the data for configurations is stored at C:\ProgramData\VirtuallTek once executed the first time instead of other folder XD. That's why your tutorial was so usefull

Another thing is that I was in need to modify a lil' the method, instead of adding cmd + the parameters, I just added the program shortcut (In my case, D:\Programs\MUGEN\VirtualTek\ff32.exe) because cmd wasn't hidden with the start minimized option in the final shortcut using the cmd + parameters method.

Hope this gives you a whole panorama, but anyway is not that important

Thanks again for the tutorial and also for those for Windows 8, they saved me lots of troubles :P

See ya!!!
My System SpecsSystem Spec
.


06 Aug 2012   #334
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

After testing it with the elevated shortcut created exactly as written in the tutorial, the cmd window stayed open for me for a few seconds longer than normal for only the first time I ran the program before closing. Afterwards, I never saw the CMD window again when running the program with the shortcut.


To have it open in focus, you will need to use %windir%\System32\cmd.exe at step 7 instead.

For me, the file path to ff32.exe was this below instead:
"C:\Program Files (x86)\VirtuallTek\Fighter Factory Ultimate\ff32.exe"
I used Fighter Factory Ultimate as the task name, so I used this at step 8.
Code:
/c start "Fighter Factory Ultimate" "C:\Program Files (x86)\VirtuallTek\Fighter Factory Ultimate\ff32.exe"
....and used this for the shortcut:
schtasks /run /tn "Fighter Factory Ultimate"

My System SpecsSystem Spec
06 Aug 2012   #335
FerchogtX

Microsoft Windows 7 Home Premium SP1 64-bit Build 7600 / Microsoft Windows XP Professional SP3
 
 

Funny thing is that it appears the command window for a lil sec and then FFU is loaded... well then, I can live with it XD.
Thanks for this man!!
My System SpecsSystem Spec
07 Aug 2012   #336
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome.

Yeah, the cmd window usually opens and closes so fast that you normally would only see a quick flash if that.
My System SpecsSystem Spec
20 Aug 2012   #337
ColinWG

Windows 7
 
 
This Is A Thank You Post

Specifically for this tutorial:
Elevated Program Shortcut without UAC Prompt - Create
Elevated Program Shortcut without UAC Prompt - Create

It helped me greatly and avoided me having to just plain turn off the UAC due to Windows 7 not liking Audition needing to run with Aero off.
My System SpecsSystem Spec
20 Aug 2012   #338
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're welcome Collin. I'm happy to hear that it was able to help you.
My System SpecsSystem Spec
21 Aug 2012   #339
ColinWG

Windows 7
 
 

Sub question, do I modify my associations to call this instead of the program directly to achieve the same thing with associated file opening? That is, Right Click -> Edit -> Audition So instead of Audition, should I point it to the modified shortcut on the desktop?
My System SpecsSystem Spec
Comment

 Elevated Program Shortcut without UAC Prompt - Create




Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 10:55 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33