473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Python 2.4 Uninstall Entry in WinXP Registry

Python 2.3 placed a registry key under:

'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\Uninstall\Python2.3'

When this key was removed, Python no longer appeared in the Windows 'Add
Remove Programs' list. We would remove this registry key to keep users
from uninstalling the software accidentally.

Python 2.4 does not use this registry entry on the two machines I have
installed it on... any tips on how to locate this?

Thanks,
Brad
Jul 18 '05 #1
5 2147
Brad Tilley wrote:
Python 2.3 placed a registry key under:

'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\Uninstall\Python2.3' [...] Python 2.4 does not use this registry entry on the two machines I have
installed it on... any tips on how to locate this?


It's under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{82D9302E-F209-4805-B548-52087047483A}

which is the product code of Python 2.4. Notice that Python 2.4.1
will use a different product code.

However, if you merely want to avoid that users remove the package,
you can set the ARPNOREMOVE property during installation, e.g.

msiexec /i python24.msi ARPNOREMOVE=1

You might want to set ARPNOMODIFY and ARPNOREPAIR as well.

If you cannot readily pass that property on the command line during
installation, you can use orca.exe (or a python script) to add this
property to the Property table of python24.msi.

If you have W2k or later, you can also set the "NoRemove" registry
value under the key above, to hide the remove feature after
installation.

HTH,
Martin
Jul 18 '05 #2
Martin v. Löwis wrote:
Brad Tilley wrote:
Python 2.3 placed a registry key under:

'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\Uninstall\Python2.3'

[...]
Python 2.4 does not use this registry entry on the two machines I have
installed it on... any tips on how to locate this?

It's under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{82D9302E-F209-4805-B548-52087047483A}
which is the product code of Python 2.4. Notice that Python 2.4.1
will use a different product code.

However, if you merely want to avoid that users remove the package,
you can set the ARPNOREMOVE property during installation, e.g.

msiexec /i python24.msi ARPNOREMOVE=1

You might want to set ARPNOMODIFY and ARPNOREPAIR as well.

If you cannot readily pass that property on the command line during
installation, you can use orca.exe (or a python script) to add this
property to the Property table of python24.msi.

If you have W2k or later, you can also set the "NoRemove" registry
value under the key above, to hide the remove feature after
installation.

HTH,
Martin


That's very helpful, thanks Martin! How do I set the install path to
c:\Program Files?
Jul 18 '05 #3
Brad Tilley wrote:
Martin v. Löwis wrote:
Brad Tilley wrote:
Python 2.3 placed a registry key under:

'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\Uninstall\Python2.3'



[...]
Python 2.4 does not use this registry entry on the two machines I
have installed it on... any tips on how to locate this?


It's under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{82D9302E-F209-4805-B548-52087047483A}
which is the product code of Python 2.4. Notice that Python 2.4.1
will use a different product code.

However, if you merely want to avoid that users remove the package,
you can set the ARPNOREMOVE property during installation, e.g.

msiexec /i python24.msi ARPNOREMOVE=1

You might want to set ARPNOMODIFY and ARPNOREPAIR as well.

If you cannot readily pass that property on the command line during
installation, you can use orca.exe (or a python script) to add this
property to the Property table of python24.msi.

If you have W2k or later, you can also set the "NoRemove" registry
value under the key above, to hide the remove feature after
installation.

HTH,
Martin

That's very helpful, thanks Martin! How do I set the install path to
c:\Program Files?


I found the documentation here:

http://python.fyxm.net/2.4/msi.html
Jul 18 '05 #4
Brad Tilley wrote:
I found the documentation here:

http://python.fyxm.net/2.4/msi.html


The original, of course, is at

http://python.org/2.4/msi.html

Regards,
Martin
Jul 18 '05 #5
Martin v. Löwis wrote:
Brad Tilley wrote:
I found the documentation here:

http://python.fyxm.net/2.4/msi.html

The original, of course, is at

http://python.org/2.4/msi.html

Regards,
Martin


Thanks Martin... going to a .msi was a great move... we can do fully
automated, unattended installs now. I appreaciate your work.

P.S. Here's what my batch install file currently looks like:

msiexec /i python-2.4.msi /qb! ALLUSERS=1 ARPNOREMOVE=1 ARPNOMODIFY=1
ARPNOREPAIR=1 ADDLOCAL=ALL TARGETDIR="C:\Program Files\Python24"

Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Stephen Boulet | last post by:
When I upgrade from 2.2.3 to 2.3 on windows, do I first uninstall 2.2.3? -- Stephen
2
by: Jeff Wagner | last post by:
I just tried to install Python Win32 (win32all-163.exe) and right after the install, I am getting the message: "As this is being installed as a non-admin user, certain COM features will not work...
3
by: Matthias Baas | last post by:
Hi, are there any guidelines about what to do if a Windows extension for Python 2.4 requires the C++ runtime (msvcp71.dll)? If I want to distribute a binary installer of an extension that...
9
by: Fan Ruo Xin | last post by:
Hi, We only purchased db2 udb license for AIX platforms. So I have to install the DB2 UDB Version8.1 tried code on my laptop (Win2k). I haven't used it for a long time. When I tried to bring the...
5
by: Adam Clauss | last post by:
I am needing to automate some installation tasks. I first need to determine if there is already a version of a program installed. The program appears in the Add/Remove Programs in control panel,...
0
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the...
5
by: paw | last post by:
I have ran the MSI installer for Python 2.5 several times attempting to install to C: Python, however all of the files are placed in C:\ . The installer is told to only install files for me,...
1
by: walterbyrd | last post by:
Lets suppose, I want a listing of what hardware and software is installed on my windows box. Can I do that with Python?
3
by: Steve Cross | last post by:
I need a procedure for a manual .Net 2.0 Framework uninstall. dotnetfx /C doesn't work Manaully running the .msi from the %systemroot%\installer directory doesn't work. It appears to be...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.