What is the proper way to run an executable (.exe) file in Microsoft Windows Vista, with UAC (User Account Control) turned on?
Also, how can I detect that UAC is turned on or off? (I am guessing it is *somewhere* in the registry :p )
Thanks
Printable View
What is the proper way to run an executable (.exe) file in Microsoft Windows Vista, with UAC (User Account Control) turned on?
Also, how can I detect that UAC is turned on or off? (I am guessing it is *somewhere* in the registry :p )
Thanks
Yes its in the registry but to read the registry will take administrator permissions which will invoke the UAC prompt lol.
You are needing to run your whole program as Admin? Its usually not a good idea from a security standpoint but you need to use a manifest with the requesting level you desire for your exe. then if the user is an Admin it will prompt for a Yes/No msgbox to allow or not but if the user is a user then they will get prompted to enter in admin credientals to allow the execution.
Damn, Microsoft thought that registry thing thought ;)
Oh, sorry, i didn't explain myself fully.
I have my VB6 program, that launches another program that you choose on your hard drive. I'm having trouble, because whenever UAC is turned on it errors, but if UAC is off it is fine, just as it is fine when run on XP.
So, this manifest file, if the file is specific per exe I don't think that will work as on the program, you can choose the exe to run, so basically, the exe it will be running, will be random.