This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: bdist_wininst installers should warn if target dir is read-only
Type: crash Stage: resolved
Components: Distutils Versions: Python 3.5
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: tarek Nosy List: alexis, eric.araujo, mitchfrazier, tarek, vstinner
Priority: normal Keywords:

Created on 2011-09-23 22:14 by mitchfrazier, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg144477 - (view) Author: Mitch Frazier (mitchfrazier) Date: 2011-09-23 22:14
Distutils built installers will fail on Windows with a run-time exception of STATUS_INVALID_CRUNTIME_PARAMETER, error-code: C0000417 if the python installation directory (e.g. C:\Python27) is read-only for the user running the installer.  I've experienced this with the pyside and pywin32 installers on Windows XP.

Using procmon I discovered that the installer fails when it tries to create the installation log file in the python install directory.  That led me to look at the directory which is when I discovered that it was read only for my user account.  It's read-only because the Python installer was run as Administrator and the other installers are being run from my user account.

Changing the directory to read-only for my account allows the installer to run without problem.

Perhaps the installer could check for this and provide a friendlier response.
msg145111 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-07 17:27
Are these winsinst or MSI installers?
msg145112 - (view) Author: Mitch Frazier (mitchfrazier) Date: 2011-10-07 17:30
On 10/7/2011 10:27 AM, Éric Araujo wrote:
> Éric Araujo<>  added the comment:
> Are these winsinst or MSI installers?

They are windows installers (winsinst).

> ----------
> components: +Distutils2 -Distutils
> nosy: +alexis
> versions: +3rd party, Python 3.3 -Python 2.7
> _______________________________________
> Python tracker<>
> <>
> _______________________________________
msg384824 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-01-11 12:51
The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802.
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57247
2021-01-11 12:51:55vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg384824

resolution: wont fix
stage: needs patch -> resolved
2014-03-13 20:07:11eric.araujosetmessages: - msg145115
2014-03-13 20:06:53eric.araujosetcomponents: + Distutils, - Distutils2
versions: + Python 3.5, - 3rd party, Python 3.3
2011-10-07 17:39:27eric.araujosettitle: distutils windows installer STATUS_INVALID_CRUNTIME_PARAMETER (C0000417) exception when python dir is read only -> bdist_wininst installers should warn if target dir is read-only
messages: + msg145115
stage: needs patch
2011-10-07 17:30:51mitchfraziersetmessages: + msg145112
2011-10-07 17:27:26eric.araujosetversions: + 3rd party, Python 3.3, - Python 2.7
nosy: + alexis

messages: + msg145111

components: + Distutils2, - Distutils
2011-09-23 22:14:31mitchfraziercreate