[python-win32] Check if user has windows administrator

Michel Claveau mc at mclaveau.com
Tue Jan 15 07:36:32 CET 2008


Hi!

> force bdist_wininst executables to request elevation ?

Sorry, not a real answer, (rather information).

On Vista, install is detected by Vista, and run automatically with 
elevation.  In theory. Because, in practice, it's true, or it's false, 
sometimes...

Perso, for my install softs, I use AutoIt (language "beurk!", but 
functionalities useful, like "Require Admin"). My AutoIt script 
require_admin (force "need elevation"), and, only run a batch (child 
process), who run pywin32 (after python25.msi, and before other packages).
Like batchs launched since a soft "with elevation" inherit elevation, my 
installs run OK.

Sorry for my bad English, and the half out-subject, and... have a good day.

Michel Claveau



More information about the python-win32 mailing list