Python MSI does not write to registry

Got a problem you cannot solve? Try here.
hajnie
Posts: 9
Joined: Tue Oct 17, 2006 5:49 pm

Python MSI does not write to registry

Postby hajnie » Tue Nov 07, 2006 2:23 pm

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?

hajnie
Posts: 9
Joined: Tue Oct 17, 2006 5:49 pm

Postby hajnie » Tue Nov 07, 2006 8:02 pm

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?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Nov 08, 2006 7:37 pm

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 225 guests