Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
519 views
in Technique[技术] by (71.8m points)

uac - Program needing elevation in Startup registry key (windows 7)

I have a program that I'd to run when the computer starts. I've put its path inside "SOFTWAREMicrosoftWindowsCurrentVersionRun". This is in Windows 7. When the computer starts nothing happens. I'm thinking this is because the program needs elevation when I run it. But Windows does not ask for permission to elevate and gives no feedback. It simply ignores it. I've read that Vista tells you that the program was blocked etc. Does anybody have any idea why Windows 7 simply ignores the application?

Thank you very much in advance.

Alireza

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Windows Vista and 7 block programs requiring elevation from startup to prevent a flurry of UAC prompts at each startup. This blog entry from the UAC team explains it pretty clearly. As a workaround, create a task scheduler entry to start the program if your program absolutely must run with elevated privileges.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...