sairaj

hi i have to disable UAC in vista while running my application and at last i have to enable it. how to do this in vc++. im a new bie to vista. pls help me


Re: Visual C++ General Vista UAC in vc++

Brendan Grant

You aren't going to be able to disable UAC without being first elevated by UAC... in which case your app would be running with administrative permissions and likely able to do everything you want to do with UAC disabled... something that would also be the case for any applications that your app launches (while elevated).

Is running your app as Administrator not an option Why not Why do you think that temporarily disabling UAC would be better




Re: Visual C++ General Vista UAC in vc++

sairaj

i am having lot f process to run.
1. change the boot options using bcdedit.
2. have to copy the files from flash drive to operating system drive.
3. download some tools and install programmatically.
4. reboot the system

i cant do this. access denied occured. if i use runas then i have to put this as separate exe and have to call this from another one with runas. hence i decided to disable UAC till my process completed. i have to enable UAC before rebooting






Re: Visual C++ General Vista UAC in vc++

Ramkrishna Pawar

If you can not run your application as an administrator (or user with such priviledges) then it will fail even with UAC disabled.

And if you can run as admin, then you might do some modifications to your application to be able to run with UAC, see following link for more info,

How To: Use Vista's UAC Feature To Avoid Always Requiring Admin Rights

In-depth analysis of Vista UAC and the creation of CreateProcess ...

The Windows Vista and Windows "Longhorn" Server Developer Story: Windows Vista Application Development Requirements for User Account Control (UAC)

Top 10 Ways to Light Up Your Windows Vista Apps

An Inside Look At The Next Generation Of Visual C++






Re: Visual C++ General Vista UAC in vc++

sairaj

thank you very much. i got it.