Vista - User Account Control Bites?

Just wondering whether or not anyone else has had to modify their code to live with UAC?

The problem? Well, here's one - you can't use CreateProcess to shell another application - like a wrappered setup.exe perhaps.

I recently had to do this for some code that wrappered an AV installer here. CreateProcess fails coz the Shell can't prompt/ask the user if the incoming app's ok to be run.

A simple fix is to just do this via the Shell, i.e., through something like ShellExecuteEx – then the user gets asked the 'is it ok' question.

There seem to be other methods – most of which are documented on msdn of course

Print | posted on Monday, January 29, 2007 5:03 PM