-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior when running installer a second time with the same arguments or unattend.xml #81464
Comments
When executing the installer with arguments or using the unattend.xml to run it without UI as documented in https://python.readthedocs.io/en/stable/using/windows.html#installing-without-ui the installer ignores the arguments or unattend.xml when it's executed again. The second time, the installer (running i modify mode) uses the default values (hereby removing the Prepenpath if set the first time) (testet with version 3.6.6-amd64 to 3.7.3-amd64 of the executable installer) To recreate, run the following : step 1 : now python is install as expected. step 2 : even though the options are exactly the same, the installer now removes python from path and installs tcltk, documentation, test and dev. step 3 : now the installer only makes a quick check, what i would have expected in step 2, but hare only the default values are used. |
Hmm... interesting. Thanks for the heads-up, I think I know what this may be (there's a conditional planning stage in the bootstrapper that is probably being skipped on Modify). I'll take a look when I get a chance. |
Okay, this is definitely an ordering issue in Tools/msi/bundle/bootstrap/PythonBootstrapApplication.cpp Fixing most of the options is easy - just a case of moving LoadOptionalFeatureStates() a few lines up - but Install_launcher is set much later. I should be able to fix both though. |
This will be fixed in the next release. Thanks for the report! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: