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.

classification
Title: Python installer having problem in installing Python for all users in Windows
Type: behavior Stage:
Components: Installation, Windows Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Debarshi.Goswami, manddy221, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2015-08-06 05:15 by Debarshi.Goswami, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (7)
msg248109 - (view) Author: Debarshi Goswami (Debarshi.Goswami) Date: 2015-08-06 05:15
Python installer (msi) having problem in installing Python for all users in Windows. It gets installed for installing user only. 

I was able to log the python output and found the below in the log. 
MSI (s) (8C:D0) [07:13:00:212]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-user.

I tried the below command combinations  to install python per machine, but it seems this a default product behavior. It should be fixed.

1. msiexec /i %setup_loc% TARGETDIR="C:\apps\Python34" ADDLOCAL="ALL" ALLUSERS="1" MSIINSTALLPERUSER="" /qb

2. msiexec /i %setup_loc% TARGETDIR="C:\apps\Python34" ADDLOCAL="ALL" WHICHUSERS="ALL" /qb 
  
3. msiexec /a %setup_loc% /passive /norestart TARGETDIR="c:\apps\Python34" ADDLOCAL="ALL" ALLUSERS="1"


Setup_loc=python msi file location
ADDLOCAL="ALL" -  Install all the features of the product .
ALLUSERS="1" - ALLUSERS property value of 1 specifies the per-machine installation .
MSIINSTALLPERUSER="" - MSIINSTALLPERUSER property to an empty string ("") for a per-machine installation.

Please let me know if I am missing anything. It seems a bug to me.
msg248110 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-08-06 05:20
The default for the 3.4 installer is to install for all users, so it's strange that you can't get it to install for all users.  The log message you quote suggests that there's already a Python 3.4 installed per-user, is that the case?  What results do you get with no 3.4 installed at all?
msg253522 - (view) Author: mandeep (manddy221) Date: 2015-10-27 07:09
It works when I try it on a clean machine.
msg253523 - (view) Author: mandeep (manddy221) Date: 2015-10-27 07:14
But if there is a machine which  already has Python. If we remove python manually and try the script .

The python folder is created.
I can see python in start- all programs.
But PYTHON its missing from control panel. It does not allow me to uninstall.
msg253654 - (view) Author: mandeep (manddy221) Date: 2015-10-29 05:00
Team,

Please let me know , if there is a workaround to this.
msg254289 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2015-11-07 18:01
I use /i, ADDLOCAL=ALL and ALLUSERS=1 with success all the time (/a does not do a real install - avoid it unless you know you'll be deploying the reduced size MSI to the rest of your network, and *especially* avoid it if you don't know why you'd want to do that).

The quotes are not necessary and neither is MSIINSTALLPERUSER. I generally use /quiet or /passive rather than /qb, so that may be part of the issue.

Also, your log output indicates that it was already installed when you ran that installation. Without the existing install it should be fine, but there's no way to change from a per-user install to a per-machine install with the 3.4 installer. (The 3.5 installer, except for one bug that's probably not fixable before 3.5.2, should let a user install per-user and then per-machine if they want.)
msg254290 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2015-11-07 18:03
Also, this is not a bug (and even if it was, wouldn't be fixed for 3.4), but feel free to keep discussing how to do these installs.
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68993
2015-11-07 18:03:39steve.dowersetstatus: open -> closed
resolution: not a bug
messages: + msg254290

stage: test needed ->
2015-11-07 18:01:02steve.dowersetmessages: + msg254289
2015-10-29 05:00:54manddy221setmessages: + msg253654
2015-10-27 07:14:58manddy221setmessages: + msg253523
2015-10-27 07:09:21manddy221setnosy: + manddy221
messages: + msg253522
2015-08-06 05:20:53zach.waresetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
messages: + msg248110

components: + Windows
stage: test needed
2015-08-06 05:15:40Debarshi.Goswamicreate