Page 1 of 1

Python MSI does not write to registry

Posted: Tue Nov 07, 2006 2:23 pm
by hajnie
I need to install Python 2.5 alongside my app. I have created an Application Runtime extension to do this and it is working fine EXCEPT that the normal Python registry entries are NOT written. If I just double-click the MSI (found at python.org) and select all the default choices, the registry entries ARE written (HKLM\\SOFTWARE\\Python\\PythonCore\\2.5).

Thus, the behavior is different from within InstallAware. My install line is:

Install/Remove MSI Package $SUPPORTDIR$\\python-2.5.msi[ADDLOCAL=ALL]

All other Python files appear to install correctly. What am I doing wrong?

Posted: Tue Nov 07, 2006 8:02 pm
by hajnie
I found the problem. If I just double-click the MSI, the option to install for ALL users is automatically selected. If I run the MSI from InstallAware, the option to install for just the CURRENT user is automatically selected. So the registry is being written, just not in the place I want it (I want HKLM, not HKCU).

Is there a way for me to change that option on MSI command line?

Posted: Wed Nov 08, 2006 7:37 pm
by MichaelNesmith
I think what you want to do is also set the ALLUSERS MSI property. So just add this to your command line (the part where it says ADDLOCAL=ALL), ALLUSERS=1.