diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-04 23:23:27 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-04 23:23:27 (GMT) |
commit | 4de219d511defbf191dcd9eba36cabcddf800b44 (patch) | |
tree | debfb1561308c46d21001a1fa3e84614658c389e | |
parent | bcf4b358717a6c3ad2fa376c51b14d9cd494c5fb (diff) | |
download | cpython-4de219d511defbf191dcd9eba36cabcddf800b44.zip cpython-4de219d511defbf191dcd9eba36cabcddf800b44.tar.gz cpython-4de219d511defbf191dcd9eba36cabcddf800b44.tar.bz2 |
+ Add version info to Win2K add/remove.
+ Fiddle vrbls so Win2K add/remove can display version w/o future manual
script fiddling.
+ Break apart the mysterious wizard-generated Win2K "Edit 3 Registry Keys"
script items by hand into 3 separate items, so you can see what the heck
they're doing in the script view.
+ pydoc.pyw was a problem: it's installed by both the Main and Tools
components. So when both were selected, the second time it got
installed Wise figured it was overwriting a pre-existing version, and
made a backup copy in BACKUP. A rollback-uninstall then restored that,
leaving the Tools/Scripts/ directory non-empty, and so Wise couldn't
remove that directory (or any above it). Fixed by installing pydoc.pyw
at most once.
+ Rearranged and commented the "register file extensions" section, because
it was confusing and needs more work: turns out it's not true that
Win2K requires Admin privs to register file extensions, BUT, if you
don't have Admin privs, Win2K requires a new way to register file
extensions, and a way that doesn't blow up but doesn't do any good either
on earlier Windows flavors. I think I know how to get this done, but am
too depressed to do it right now <0.7 wink>.
-rw-r--r-- | PCbuild/python20.wse | 245 |
1 files changed, 142 insertions, 103 deletions
diff --git a/PCbuild/python20.wse b/PCbuild/python20.wse index 439a94e..7ad564f 100644 --- a/PCbuild/python20.wse +++ b/PCbuild/python20.wse @@ -12,7 +12,7 @@ item: Global Log Pathname=%MAINDIR%\INSTALL.LOG Message Font=MS Sans Serif Font Size=8 - Pages Modified=00010000011101000000000100000010 + Pages Modified=00010000011101000000000100000011 Extra Pages=00000000000000000000000010110010 Disk Filename=SETUP Patch Flags=0000000000000001 @@ -54,8 +54,8 @@ item: Global Variable Flags6=00001000 end item: Set Variable - Variable=APPTITLE - Value=Python 2.2a1 + Variable=PYVER_STRING + Value=2.2a1 end item: Remark end @@ -72,7 +72,7 @@ item: Remark Text=Other things that need fiddling: end item: Remark - Text= The APPTITLE setting above. + Text= PYVER_STRING above. end item: Remark Text= The "Title:" in the upper left corner of the GUI. @@ -85,6 +85,10 @@ item: Remark end item: Remark end +item: Set Variable + Variable=APPTITLE + Value=Python %PYVER_STRING% +end item: Remark Text=PY_VERSION should be major.minor only; used to create the registry key; must match MS_DLL_ID in python_nt.rc end @@ -754,25 +758,25 @@ item: Custom Dialog Set Text=Python test suite (Lib/test/) Text=Register file extensons (requires Admin privs) Text= - Text French=Python interpreter, library and Tcl/Tk + Text French=Python interpreter, library and IDLE Text French=Python HTML docs Text French=Python utility scripts (Tools/) Text French=Python test suite (Lib/test/) Text French=Register file extensons (requires Admin privs) Text French= - Text German=Python interpreter, library and Tcl/Tk + Text German=Python interpreter, library and IDLE Text German=Python HTML docs Text German=Python utility scripts (Tools/) Text German=Python test suite (Lib/test/) Text German=Register file extensons (requires Admin privs) Text German= - Text Spanish=Python interpreter, library and Tcl/Tk + Text Spanish=Python interpreter, library and IDLE Text Spanish=Python HTML docs Text Spanish=Python utility scripts (Tools/) Text Spanish=Python test suite (Lib/test/) Text Spanish=Register file extensons (requires Admin privs) Text Spanish= - Text Italian=Python interpreter, library and Tcl/Tk + Text Italian=Python interpreter, library and IDLE Text Italian=Python HTML docs Text Italian=Python utility scripts (Tools/) Text Italian=Python test suite (Lib/test/) @@ -1736,8 +1740,8 @@ item: Remark Text=Windows pydoc driver end item: Install File - Source=..\tools\scripts\pydoc.pyw - Destination=%MAINDIR%\Tools\Scripts\pydoc.pyw + Source=..\tools\scripts\*.pyw + Destination=%MAINDIR%\Tools\Scripts Description=Windows pydoc driver Flags=0000000000000010 end @@ -1795,23 +1799,35 @@ item: Install File Flags=0000000000000010 end item: Install File - Source=..\tools\scripts\*.pyw + Source=..\tools\scripts\*.doc Destination=%MAINDIR%\Tools\Scripts Description=Utility Scripts Flags=0000000000000010 end item: Install File - Source=..\tools\scripts\*.doc - Destination=%MAINDIR%\Tools\Scripts + Source=..\tools\scripts\readme + Destination=%MAINDIR%\Tools\Scripts\README.txt Description=Utility Scripts Flags=0000000000000010 end +item: Remark + Text=*.pyw is installed by the main component; if we install it twice, a copy gets made +end +item: Remark + Text= in BACKUP, and then a rollback-uninstall will copy back the first one. +end +item: Check if File/Dir Exists + Pathname=%MAINDIR%\Tools\Scripts\pydoc.pyw + Flags=00000101 +end item: Install File - Source=..\tools\scripts\readme - Destination=%MAINDIR%\Tools\Scripts\README.txt + Source=..\tools\scripts\*.pyw + Destination=%MAINDIR%\Tools\Scripts Description=Utility Scripts Flags=0000000000000010 end +item: End Block +end item: Remark end item: Install File @@ -1950,7 +1966,7 @@ item: Remark Text=DONE with file copying. end item: Remark - Text=The rest is Start menu and registry fiddling. + Text=The rest is registry and Start Menu fiddling. end item: Remark end @@ -1960,6 +1976,9 @@ item: If/While Statement Flags=00001010 end item: Remark + Text=Register file extensions. +end +item: Remark Text=Registering file extensions requires Admin privs. end item: If/While Statement @@ -1968,18 +1987,7 @@ item: If/While Statement Flags=00001010 end item: Remark - Text=Register file extensions. -end -item: Edit Registry - Total Keys=1 - Key=.py - New Value=Python.File -end -item: Edit Registry - Total Keys=1 - Key=.py - New Value=text/plain - Value Name=Content Type + Text=File types. end item: Edit Registry Total Keys=1 @@ -1996,16 +2004,7 @@ item: Edit Registry Key=Python.File\DefaultIcon New Value=%MAINDIR%\Py.ico end -item: Edit Registry - Total Keys=1 - Key=.pyw - New Value=Python.NoConFile -end -item: Edit Registry - Total Keys=1 - Key=.pyw - New Value=text/plain - Value Name=Content Type +item: Remark end item: Edit Registry Total Keys=1 @@ -2022,15 +2021,7 @@ item: Edit Registry Key=Python.NoConFile\DefaultIcon New Value=%MAINDIR%\Py.ico end -item: Edit Registry - Total Keys=1 - Key=.pyc - New Value=Python.CompiledFile -end -item: Edit Registry - Total Keys=1 - Key=.pyo - New Value=Python.CompiledFile +item: Remark end item: Edit Registry Total Keys=1 @@ -2047,6 +2038,47 @@ item: Edit Registry Key=Python.CompiledFile\DefaultIcon New Value=%MAINDIR%\pyc.ico end +item: Remark +end +item: Remark + Text=File extensions. +end +item: Edit Registry + Total Keys=1 + Key=.py + New Value=Python.File +end +item: Edit Registry + Total Keys=1 + Key=.py + New Value=text/plain + Value Name=Content Type +end +item: Remark +end +item: Edit Registry + Total Keys=1 + Key=.pyw + New Value=Python.NoConFile +end +item: Edit Registry + Total Keys=1 + Key=.pyw + New Value=text/plain + Value Name=Content Type +end +item: Remark +end +item: Edit Registry + Total Keys=1 + Key=.pyc + New Value=Python.CompiledFile +end +item: Edit Registry + Total Keys=1 + Key=.pyo + New Value=Python.CompiledFile +end item: End Block end item: Remark @@ -2141,14 +2173,14 @@ end item: Remark Text=Registry fiddling for docs. end +item: Remark + Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical! +end item: If/While Statement Variable=COMPONENTS Value=B Flags=00001010 end -item: Remark - Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical! -end item: Check Configuration Flags=10111111 end @@ -2173,75 +2205,80 @@ end item: Remark end item: Remark - Text=Well, *this* is cryptic! It's setting up the app publisher and URL entries for Win2K add/remove. + Text=Set the app publisher and URL entries for Win2K add/remove. end item: Remark - Text=Ack, and "Win2K" isn't enough either -- you can't actually do this without Admin privs too. + Text=It doesn't hurt on other systems. +end +item: Remark + Text=As usual, write to HKLM or HKCU depending on Admin privs. +end +item: Remark + Text=CAUTION: If you set this info on the "Windows 2000" page (step 6) of the +end +item: Remark + Text=Installation Expert, it only shows up in the "If" block below. Keep in synch! end item: Check Configuration Flags=10111111 end item: Edit Registry - Total Keys=3 - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=http://www.python.org/ - Value Name=HelpLink - Root=2 - end - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=PythonLabs at Zope Corporation - Value Name=Publisher - Root=2 - end - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=http://www.python.org/ - Value Name=URLInfoAbout - Root=2 - end + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=http://www.python.org/ + Value Name=HelpLink + Root=2 end -item: Else Statement +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=PythonLabs at Zope Corporation + Value Name=Publisher + Root=2 end -item: Remark - Text=Same thing, except write to HKCU instead. +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=http://www.python.org/ + Value Name=URLInfoAbout + Root=2 end -item: Remark - Text=Damn -- this "edit keys" cmd was created by the Installation Expert view, and I duplicated and +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=%PYVER_STRING% + Value Name=DisplayVersion + Root=2 end -item: Remark - Text=edited it by hand. The info comes from the "Windows 2000" section of the Properties view, +item: Else Statement end -item: Remark - Text=and if you change it there it will only show up in the "if" block above. +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=http://www.python.org/ + Value Name=HelpLink + Root=1 end -item: Remark - Text=Easiest to make corresponding changes in *this* block by editing this script in +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=PythonLabs at Zope Corporation + Value Name=Publisher + Root=1 end -item: Remark - Text=a plain text editor. +item: Edit Registry + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=http://www.python.org/ + Value Name=URLInfoAbout + Root=1 end item: Edit Registry - Total Keys=3 - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=http://www.python.org/ - Value Name=HelpLink - Root=1 - end - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=PythonLabs at Zope Corporation - Value Name=Publisher - Root=1 - end - item: Key - Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% - New Value=http://www.python.org/ - Value Name=URLInfoAbout - Root=1 - end + Total Keys=1 + Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% + New Value=%PYVER_STRING% + Value Name=DisplayVersion + Root=1 end item: End Block end @@ -2250,6 +2287,8 @@ end item: Remark Text=Populate Start Menu end +item: Remark +end item: If/While Statement Variable=COMPONENTS Value=B |