[python-win32] How to launch an executable in elevated mode on Vista with UAC on?

Patrick Li patrick at raptr.com
Tue Mar 3 02:10:17 CET 2009


Hello,
I have a python program that needs to launch an executable (it is an
installer executable) that requires admin privileges.  This works fine on XP
and Vista machines where UAC is turned off.  On Vista machines with UAC on,
however, it doesn't appear to allow the program to launch the executable.

I currently use win32process.CreateProcess() to launch the executable.

Does anyone know of a way I can launch the executable with UAC on?  Ideally,
it should prompt the user to run the executable in elevated mode.

Any help would be greatly appreciated.

Thanks,
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090302/d5db284a/attachment.htm>


More information about the python-win32 mailing list