Connecting Tech Pros Worldwide Help | Site Map

Windows Vista UAC Symbol

  #1  
Old January 31st, 2008, 12:33 PM
Newbie
 
Join Date: Jan 2008
Location: Austria
Posts: 13
Hello,

I've got an application, which I'm trying to make Vista-compatible.
My problem is, there is the small four-colored UAC-Symbol on the icon of my application. This means, that my program has to be run with administrative rights.

I've spent a lot of time searching the web to find out, how Windows analyzes my program to know, it can only be run with administrative rights.

Maybe anyone of you knows, which parts of my exe-file Windows is checking to know, that there are admin-rights necessary.
(Maybe API-calls or whatever ...???)

Thank you!
  #2  
Old January 31st, 2008, 03:54 PM
YarrOfDoom's Avatar
Expert
 
Join Date: Aug 2007
Location: Belgium
Posts: 1,107

re: Windows Vista UAC Symbol


I think that whenever your program needs to write to certain parts (like the "program files"-folder, and certainly the "windows"-folder), your program will need administrator-rights to be run.
  #3  
Old February 1st, 2008, 07:02 AM
Newbie
 
Join Date: Jan 2008
Location: Austria
Posts: 13

re: Windows Vista UAC Symbol


Quote:
Originally Posted by YarrOfDoom
I think that whenever your program needs to write to certain parts (like the "program files"-folder, and certainly the "windows"-folder), your program will need administrator-rights to be run.

Yes, i know the problem with the paths, but I found a way out of this trouble. I've generated a .manifest-File, which is setting the required User-level and now it works ...

Thank you for your help!
  #4  
Old June 22nd, 2009, 04:57 PM
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,096
Provided Answers: 3

re: Windows Vista UAC Symbol


Did you use the ClickOnce security settings to create that manifest file? If not, do you have any more details on the process? (This type of question comes up frequently and I don't have a solid answer to give so far)
Reply