Getting UAC Prompt

Hi,

I want to run wyupdate.exe silently without user intervention but i am getting UAC prompt when i am using the below code.

if (UpdateAvailable()){ TCHAR szPath[MAX_PATH];

GetModuleDirectory(szPath); PathAppend(szPath, _T("wyUpdate.exe"));

// Start wyUpdate and tell we want to update with no UI prompts ShellExecute(NULL, NULL, szPath, _T("/fromservice"), NULL, SW_HIDE);}

Is there any way we can do it silently or bypass the UAC.

Thanks,Robin

If there was a way to bypass the UAC that would be a security flaw in Windows. Don't use /fromservice unless you're launch wyUpdate from a service. It's not magical. It will break things if you're not actually running wyUpdate from a service.

If you don't want UAC, install your app to %appdata%. Then wyUpdate will never prompt for UAC.