[ python-Bugs-1161187 ] Install problem 2.4.1rc1 on Win98

SourceForge.net noreply at sourceforge.net
Mon Mar 14 09:37:52 CET 2005


Bugs item #1161187, was opened at 2005-03-11 08:56
Message generated for change (Comment added) made by m_webber_sydney
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1161187&group_id=5470

Category: Installation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Spider (m_webber_sydney)
Assigned to: Martin v. Löwis (loewis)
Summary: Install problem 2.4.1rc1 on Win98

Initial Comment:
Python 2.4.1 Release Candidate 1.

I installed (with all the defautl settings)
python-2.4.1c1.msi on a Windows 98 machine.

The shortcuts in the Start / Programs / Python 2.4
group includes a shortcut named "Python Manuals".

This shortcut is inactive  - does not point to anything
valid, and clicking on it does not bring up the manuals.

I assume that the shortcut should point to
C:/Python24/Doc/Python24.chm which certainly exists on
my machine and works ok if I access it directly.

I guess the install builds the shortcut wrongly.


----------------------------------------------------------------------

>Comment By: Spider (m_webber_sydney)
Date: 2005-03-14 08:37

Message:
Logged In: YES 
user_id=1237039

Uninstalled, rebooted and reinstalled using

c:\windows\system\msiexec /i python-2.4.1c1.msi /l*v python.log

The log file (1.1MB) is available, probably too big to
cut/paste into here. I can email it to you if you like.
 

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-13 22:39

Message:
Logged In: YES 
user_id=21627

Somebody suggested in the newsgroup to request a log file; I
should have thought of this earlier.

So please reinstall the MSI file, using

msiexec /i python-2.4.1c1.msi /l*v python.log

and attach the resulting python.log to this report.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-12 22:25

Message:
Logged In: YES 
user_id=21627

Do the other links work fine?

If so, I'm about to give up and make the doc link
non-advertised. Before that, I'd like you to run another
experiment: The documentation has no working directory. It
should be possible to edit the shortcut to change the
working directory (this is possible on XP atleast), please
try setting it to c:\python24\docs (or whereever the chm is
located).

tim_one: right, the Tk links are also advertised (it was the
"Edit with IDLE" context menu that can't be made
advertised). That they are not editable is a magic of
Installer: They don't primarily contain the target file
name, but the package code of the MSI file, plus the key
name in the Shortcut table (or some such). To see that work,
delete python24.chm, then run the start menu item for
documentation. Microsoft calls it "resiliency"

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2005-03-12 18:16

Message:
Logged In: YES 
user_id=31435

Hmm.  On my box (WinXP, etc), _all_ the shortcut property 
sheets look like this (greyed out target, disabled buttons) 
with the sole exception of "Uninstall Python".  Why they 
don't come up with editable strings and "Find Target ..." 
enabled remains a mystery then.

----------------------------------------------------------------------

Comment By: Spider (m_webber_sydney)
Date: 2005-03-12 13:05

Message:
Logged In: YES 
user_id=1237039

Installer was already on the machine.
I am testing this under VMWare, by the way.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-12 12:13

Message:
Logged In: YES 
user_id=21627

Did you install Installer 2.0 as part of the Python
installation, or was it already on your machine? If you did
install it, did you reboot after installing it?

----------------------------------------------------------------------

Comment By: Spider (m_webber_sydney)
Date: 2005-03-12 11:59

Message:
Logged In: YES 
user_id=1237039

As requested, I uninstalled, rebooted and then installed with

C;\windows\system\msiexec.exe /i python-2.4.1c1.msi
DISABLEADVTSHORTCUTS=1

That worked, and the shortcut to the Manuals was correctly
built this time (I did not need to reboot).

Let me know if you want any further tests.

Matthew


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-12 11:16

Message:
Logged In: YES 
user_id=21627

Also, did you reboot the machine after installing the
install 2.0? According to

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/platform_support_of_advertisement.asp

advertised shortcuts don't work until the machine is rebooted.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-12 11:14

Message:
Logged In: YES 
user_id=21627

m_webber_sydney, can you please also try the following
procedure, and report whether it changes anything?

- uninstall your current 2.4.1 installation
- reinstall it, using the following command in a command.com
window

msiexec /i python-2.4.1c1.msi DISABLEADVTSHORTCUTS=1


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2005-03-12 10:59

Message:
Logged In: YES 
user_id=21627

It's an "advertised shortcut" - a special OLE file  that the
shell recognizes and unpacks as a link. However, before
unpacking it, it verifies that the target file is there, and
if it isn't, it invokes invokes installer to provide the file.

According to Microsoft's documentation, installer checks
whether the IShellLink interface supports "installer
description resolution", which should be the case for W2k,
W98, and systems running IE4. If installer determines that
the system does not support advertisement, it creates an
unadvertised shortcut. So it "ought to" work on all systems.

The IDLE shortcut is unadvertised, because it is not
possible to trigger the Tkinter installation correctly.

m_webber_sydney, does the "Python (command line)" link work
correctly? It is built in the same way.


----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2005-03-11 15:42

Message:
Logged In: YES 
user_id=31435

Assigning to Martin.  Martin, what kind of "shortcut" does the 
installer build now -- could it perhaps depend on an NTFS 
feature, like hard links?  Why I ask:

When I right-click on, e.g., "IDLE (Python GUI)" and select 
Properties in a 2.3 installation, I get "the expected" kind of 
window, with a Shortcut tab containing

C:\Python23\pythonw.exe "C:\Python23\Lib\idlelib\idle.pyw"

in the Target box, which is an editable string.  When I do the 
same with 2.4.1c1 (and don't know about 2.4 -- never tried 
this there), the Shortcut tab's Target box contains just

Python 2.4.1c1

and that's greyed out -- can't edit it.  The "Find Target .." 
and "Change Icon .." buttons are greyed out too.

It _works_ for me anyway, but I'm on WinXP + NTFS here.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1161187&group_id=5470


More information about the Python-bugs-list mailing list