pywin32 is using the installer capabilities built into Python itself (as
part of distutils), so the changes would need to be made there. Sadly,
that capability is slowly rotting as the world moves to other ways of
installing Python modules, and I no longer have the time to make
improvements there.
On 8/03/2016 11:18 PM, Fredrik Orderud wrote:
I'm working in a corporate environment where user account control and
corporate policies are used to restrict application installation
privileges. As a consequence of this the PyWin32 installer fails when
not being started from a command prompt with administrative privileges
(right click and select "run as administrator" does not work). The
installation failure is of course not PyWin32's fault, but it would help
with a stronger indication of failure.
That's strange - the installer should just work by running it anywhere
(eg, by double-clicking it in explorer) and should request elevation.
Observed behavior after copying & compiling of files have completed:
---
Postinstall script finished.
Click the Finish button to exit the Setup wizard.
---
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
---
Sadly things are very subtle, and that alone doesn't mean the
installation failed. You should be able to find a
pywin32_postinstall.log file in your %temp% directory that contains a
detailed log (the log that *should* be shown in that installation window)
Several of my colleagues failed to notice the subtle error message, and
believed that the installer succeeded. This led way to many problems
with PyWin32 not working later on.
Could it be possible to somehow give a clearer user notification on
installer failure?
Depending on that you are trying to do with pywin32, it may be possible
to just copy the pywin32 directories and files, then run "python
pywin32_postinstall.py -install" as part of the installation process you
use and skip the pywin32 installer completely.
HTH,
Mark
Thanks in advance
Fredrik
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32