comparison PCbuild/python20.wse @ 19000:8ea60e2b0f21 legacy-trunk

+ Redid file associations on Win2K in what I believe is "the right way". Can't test it until getting to a Win2K box, because the non-Admin way of setting file associations on Win2K doesn't work on any other flavor of Windows (and other flavors of Windows never need Admin privs to do it the old way). + Consequently got rid of the "Register file associations" Component and associated GUI. + Added a line to the summary saying whether or not this is an Admin-level install (I fear that will be an important clue someday). + Minor fiddling to the summary to reduce the # of lines. Added a horizontal scrollbar in case the install path is very long. + Reworked the way the Main and Tools components share pydoc.pyw; cleaner and simpler.
author Tim Peters <tim.peters@gmail.com>
date Sun, 05 Aug 2001 05:19:15 +0000
parents a2b3587f592a
children 28f0ea8d6278
comparison
equal deleted inserted replaced
18999:a2b3587f592a 19000:8ea60e2b0f21
23 Version File=2.2a1 23 Version File=2.2a1
24 Version Description=Python Programming Language 24 Version Description=Python Programming Language
25 Version Copyright=©2001 Python Software Foundation 25 Version Copyright=©2001 Python Software Foundation
26 Version Company=PythonLabs at Zope Corporation 26 Version Company=PythonLabs at Zope Corporation
27 Crystal Format=10111100101100000010001001001001 27 Crystal Format=10111100101100000010001001001001
28 Step View=&Properties 28 Step View=&All
29 Variable Name1=_WISE_ 29 Variable Name1=_WISE_
30 Variable Description1=WISE root directory 30 Variable Description1=WISE root directory
31 Variable Default1=C:\PROGRAM FILES\WISE INSTALLMASTER 8.1 31 Variable Default1=C:\PROGRAM FILES\WISE INSTALLMASTER 8.1
32 Variable Flags1=00001000 32 Variable Flags1=00001000
33 Variable Name2=_TCLMINOR_ 33 Variable Name2=_TCLMINOR_
278 Text=C: tools 278 Text=C: tools
279 end 279 end
280 item: Remark 280 item: Remark
281 Text=D: test suite 281 Text=D: test suite
282 end 282 end
283 item: Remark
284 Text=E: register file extensions (requires Admin privs)
285 end
286 item: If/While Statement
287 Variable=DOADMIN
288 Value=1
289 end
290 item: Set Variable 283 item: Set Variable
291 Variable=COMPONENTS 284 Variable=COMPONENTS
292 Value=ABCDE 285 Value=ABCD
293 end
294 item: Else Statement
295 end
296 item: Remark
297 Text=Lowercase E grays out the "register file extension" choice.
298 end
299 item: Set Variable
300 Variable=COMPONENTS
301 Value=ABCDe
302 end
303 item: End Block
304 end 286 end
305 item: Wizard Block 287 item: Wizard Block
306 Direction Variable=DIRECTION 288 Direction Variable=DIRECTION
307 Display Variable=DISPLAY 289 Display Variable=DISPLAY
308 Bitmap Pathname=%_WISE_%\Dialogs\Template\Wizard.bmp 290 Bitmap Pathname=%_WISE_%\Dialogs\Template\Wizard.bmp
309 X Position=9 291 X Position=9
310 Y Position=10 292 Y Position=10
311 Filler Color=8421440 293 Filler Color=8421440
312 Flags=00000011 294 Flags=00000011
295 end
296 item: If/While Statement
297 Variable=DISPLAY
298 Value=Start Installation
299 end
300 item: Set Variable
301 Variable=SUMMARY
302 Value=Install directory: %MAINDIR%%CRLF%
303 end
304 item: Remark
305 end
306 item: If/While Statement
307 Variable=DOADMIN
308 Value=1
309 end
310 item: Set Variable
311 Variable=SUMMARY
312 Value=%CRLF%Doing admin install.%CRLF%
313 Flags=00000001
314 end
315 item: Else Statement
316 end
317 item: Set Variable
318 Variable=SUMMARY
319 Value=%CRLF%Doing non-admin install.%CRLF%
320 Flags=00000001
321 end
322 item: End Block
323 end
324 item: Remark
325 end
326 item: If/While Statement
327 Variable=DOBACKUP
328 Value=A
329 end
330 item: Set Variable
331 Variable=SUMMARY
332 Value=%CRLF%Make backups, into %BACKUP%%CRLF%
333 Flags=00000001
334 end
335 item: Else Statement
336 end
337 item: Set Variable
338 Variable=SUMMARY
339 Value=%CRLF%Don't make backups.%CRLF%
340 Flags=00000001
341 end
342 item: End Block
343 end
344 item: Remark
345 end
346 item: Set Variable
347 Variable=SUMMARY
348 Value=%CRLF%Components:%CRLF%
349 Flags=00000001
350 end
351 item: If/While Statement
352 Variable=COMPONENTS
353 Value=A
354 Flags=00000010
355 end
356 item: Set Variable
357 Variable=SUMMARY
358 Value= Python interpreter, libraries and IDLE%CRLF%
359 Flags=00000001
360 end
361 item: End Block
362 end
363 item: If/While Statement
364 Variable=COMPONENTS
365 Value=B
366 Flags=00000010
367 end
368 item: Set Variable
369 Variable=SUMMARY
370 Value= Python documentation%CRLF%
371 Flags=00000001
372 end
373 item: End Block
374 end
375 item: If/While Statement
376 Variable=COMPONENTS
377 Value=C
378 Flags=00000010
379 end
380 item: Set Variable
381 Variable=SUMMARY
382 Value= Tool and utility scripts%CRLF%
383 Flags=00000001
384 end
385 item: End Block
386 end
387 item: If/While Statement
388 Variable=COMPONENTS
389 Value=D
390 Flags=00000010
391 end
392 item: Set Variable
393 Variable=SUMMARY
394 Value= Python test suite%CRLF%
395 Flags=00000001
396 end
397 item: End Block
398 end
399 item: Remark
400 end
401 item: Set Variable
402 Variable=SUMMARY
403 Value=%CRLF%Start Menu group: %GROUP%%CRLF%
404 Flags=00000001
405 end
406 item: End Block
407 end
408 item: Remark
313 end 409 end
314 item: Custom Dialog Set 410 item: Custom Dialog Set
315 Name=Select Destination Directory 411 Name=Select Destination Directory
316 Display Variable=DISPLAY 412 Display Variable=DISPLAY
317 item: Dialog 413 item: Dialog
772 Flags=0000000000000110 868 Flags=0000000000000110
773 Text=Python interpreter, library and IDLE 869 Text=Python interpreter, library and IDLE
774 Text=Python HTML docs 870 Text=Python HTML docs
775 Text=Python utility scripts (Tools/) 871 Text=Python utility scripts (Tools/)
776 Text=Python test suite (Lib/test/) 872 Text=Python test suite (Lib/test/)
777 Text=Register file extensons (requires Admin privs)
778 Text= 873 Text=
779 Text French=Python interpreter, library and IDLE 874 Text French=Python interpreter, library and IDLE
780 Text French=Python HTML docs 875 Text French=Python HTML docs
781 Text French=Python utility scripts (Tools/) 876 Text French=Python utility scripts (Tools/)
782 Text French=Python test suite (Lib/test/) 877 Text French=Python test suite (Lib/test/)
1012 end 1107 end
1013 item: Editbox 1108 item: Editbox
1014 Rectangle=86 54 259 175 1109 Rectangle=86 54 259 175
1015 Help Context=16711681 1110 Help Context=16711681
1016 Enabled Color=00000000000000001111111111111111 1111 Enabled Color=00000000000000001111111111111111
1017 Create Flags=01010000101000000001100010000100 1112 Create Flags=01010000101100000001100000000100
1018 Text=%SUMMARY% 1113 Text=%SUMMARY%
1019 end 1114 end
1020 end 1115 end
1021 end
1022 item: Remark
1023 end
1024 item: Remark
1025 Text=If we just finished "Select Destination Directory":
1026 end
1027 item: Remark
1028 Text= %MAINDIR% is set, so reinitialize %BACKUP% to match.
1029 end
1030 item: Remark
1031 Text=ElseIf we just finished "Select Program Manager Group":
1032 end
1033 item: Remark
1034 Text= "Start Installation" is next, so build a summary for "Start Installation" to display.
1035 end 1116 end
1036 item: Remark 1117 item: Remark
1037 end 1118 end
1038 item: If/While Statement 1119 item: If/While Statement
1039 Variable=DISPLAY 1120 Variable=DISPLAY
1040 Value=Select Destination Directory 1121 Value=Select Destination Directory
1041 end 1122 end
1123 item: Remark
1124 Text=User may have changed MAINDIR, so reset BACKUP to match.
1125 end
1042 item: Set Variable 1126 item: Set Variable
1043 Variable=BACKUP 1127 Variable=BACKUP
1044 Value=%MAINDIR%\BACKUP 1128 Value=%MAINDIR%\BACKUP
1045 end 1129 end
1046 item: Remark 1130 item: End Block
1047 end 1131 end
1048 item: ElseIf Statement 1132 item: Remark
1049 Variable=DISPLAY
1050 Value=Select Program Manager Group
1051 end
1052 item: Set Variable
1053 Variable=SUMMARY
1054 Value=Installation directory%CRLF% %MAINDIR%%CRLF%
1055 end
1056 item: Remark
1057 end
1058 item: Set Variable
1059 Variable=SUMMARY
1060 Value=%CRLF%Make backups?%CRLF%
1061 Flags=00000001
1062 end
1063 item: If/While Statement
1064 Variable=DOBACKUP
1065 Value=A
1066 end
1067 item: Set Variable
1068 Variable=SUMMARY
1069 Value= Yes, into %BACKUP%%CRLF%
1070 Flags=00000001
1071 end
1072 item: Else Statement
1073 end
1074 item: Set Variable
1075 Variable=SUMMARY
1076 Value= No%CRLF%
1077 Flags=00000001
1078 end
1079 item: End Block
1080 end
1081 item: Remark
1082 end
1083 item: Set Variable
1084 Variable=SUMMARY
1085 Value=%CRLF%Components%CRLF%
1086 Flags=00000001
1087 end
1088 item: If/While Statement
1089 Variable=COMPONENTS
1090 Value=A
1091 Flags=00000010
1092 end
1093 item: Set Variable
1094 Variable=SUMMARY
1095 Value= Python interpreter, libraries and IDLE%CRLF%
1096 Flags=00000001
1097 end
1098 item: End Block
1099 end
1100 item: If/While Statement
1101 Variable=COMPONENTS
1102 Value=B
1103 Flags=00000010
1104 end
1105 item: Set Variable
1106 Variable=SUMMARY
1107 Value= Python documentation%CRLF%
1108 Flags=00000001
1109 end
1110 item: End Block
1111 end
1112 item: If/While Statement
1113 Variable=COMPONENTS
1114 Value=C
1115 Flags=00000010
1116 end
1117 item: Set Variable
1118 Variable=SUMMARY
1119 Value= Tool and utility scripts%CRLF%
1120 Flags=00000001
1121 end
1122 item: End Block
1123 end
1124 item: If/While Statement
1125 Variable=COMPONENTS
1126 Value=D
1127 Flags=00000010
1128 end
1129 item: Set Variable
1130 Variable=SUMMARY
1131 Value= Python test suite%CRLF%
1132 Flags=00000001
1133 end
1134 item: End Block
1135 end
1136 item: If/While Statement
1137 Variable=COMPONENTS
1138 Value=E
1139 Flags=00000010
1140 end
1141 item: Set Variable
1142 Variable=SUMMARY
1143 Value= Register file extensions%CRLF%
1144 Flags=00000001
1145 end
1146 item: End Block
1147 end
1148 item: Remark
1149 end
1150 item: Set Variable
1151 Variable=SUMMARY
1152 Value=%CRLF%Start Menu group%CRLF% %GROUP%%CRLF%
1153 Flags=00000001
1154 end
1155 item: End Block
1156 end 1133 end
1157 item: End Block 1134 item: End Block
1158 end 1135 end
1159 item: Remark 1136 item: Remark
1160 end 1137 end
1754 Flags=0000000000000010 1731 Flags=0000000000000010
1755 end 1732 end
1756 item: Remark 1733 item: Remark
1757 end 1734 end
1758 item: Remark 1735 item: Remark
1759 Text=Windows pydoc driver
1760 end
1761 item: Install File
1762 Source=..\tools\scripts\*.pyw
1763 Destination=%MAINDIR%\Tools\Scripts
1764 Description=Windows pydoc driver
1765 Flags=0000000000000010
1766 end
1767 item: Remark
1768 end
1769 item: Remark
1770 Text=Microsoft C runtime libraries 1736 Text=Microsoft C runtime libraries
1771 end 1737 end
1772 item: Install File 1738 item: Install File
1773 Source=%_SYS_%\MSVCIRT.DLL 1739 Source=%_SYS_%\MSVCIRT.DLL
1774 Destination=%DLLDEST%\MSVCIRT.DLL 1740 Destination=%DLLDEST%\MSVCIRT.DLL
1828 Destination=%MAINDIR%\Tools\Scripts\README.txt 1794 Destination=%MAINDIR%\Tools\Scripts\README.txt
1829 Description=Utility Scripts 1795 Description=Utility Scripts
1830 Flags=0000000000000010 1796 Flags=0000000000000010
1831 end 1797 end
1832 item: Remark 1798 item: Remark
1833 Text=*.pyw is installed by the main component; if we install it twice, a copy gets made
1834 end
1835 item: Remark
1836 Text= in BACKUP, and then a rollback-uninstall will copy back the first one.
1837 end
1838 item: Check if File/Dir Exists
1839 Pathname=%MAINDIR%\Tools\Scripts\pydoc.pyw
1840 Flags=00000101
1841 end
1842 item: Install File
1843 Source=..\tools\scripts\*.pyw
1844 Destination=%MAINDIR%\Tools\Scripts
1845 Description=Utility Scripts
1846 Flags=0000000000000010
1847 end
1848 item: End Block
1849 end
1850 item: Remark
1851 end 1799 end
1852 item: Install File 1800 item: Install File
1853 Source=..\tools\webchecker\*.py 1801 Source=..\tools\webchecker\*.py
1854 Destination=%MAINDIR%\Tools\webchecker 1802 Destination=%MAINDIR%\Tools\webchecker
1855 Description=Web checker tool 1803 Description=Web checker tool
1980 item: End Block 1928 item: End Block
1981 end 1929 end
1982 item: Remark 1930 item: Remark
1983 end 1931 end
1984 item: Remark 1932 item: Remark
1933 Text=Windows pydoc driver
1934 end
1935 item: If/While Statement
1936 Variable=COMPONENTS
1937 Value=AC
1938 Flags=00001010
1939 end
1940 item: Install File
1941 Source=..\tools\scripts\*.pyw
1942 Destination=%MAINDIR%\Tools\Scripts
1943 Description=Windows pydoc driver
1944 Flags=0000000000000010
1945 end
1946 item: End Block
1947 end
1948 item: Remark
1949 end
1950 item: Remark
1985 Text=DONE with file copying. 1951 Text=DONE with file copying.
1986 end 1952 end
1987 item: Remark 1953 item: Remark
1988 Text=The rest is registry and Start Menu fiddling. 1954 Text=The rest is registry and Start Menu fiddling.
1989 end 1955 end
1993 Variable=COMPONENTS 1959 Variable=COMPONENTS
1994 Value=A 1960 Value=A
1995 Flags=00001010 1961 Flags=00001010
1996 end 1962 end
1997 item: Remark 1963 item: Remark
1998 Text=Register file extensions. 1964 Text=Register file extensions. As usual, Admin privs get in the way, but with a twist:
1999 end 1965 end
2000 item: Remark 1966 item: Remark
2001 Text=Registering file extensions requires Admin privs. 1967 Text=You don't need admin privs to write to HKEY_CLASSES_ROOT *except* under Win2K.
2002 end 1968 end
2003 item: If/While Statement 1969 item: Remark
2004 Variable=COMPONENTS 1970 Text=On Win2K, a user without Admin privs has to register extensions under HKCU\Software\CLASSES instead.
2005 Value=E 1971 end
2006 Flags=00001010 1972 item: Remark
1973 Text=But while you can *do* that under other flavors of Windows too, it has no useful effect except in Win2K.
1974 end
1975 item: Set Variable
1976 Variable=USE_HKCR
1977 Value=1
1978 end
1979 item: Check Configuration
1980 Flags=11110010
1981 end
1982 item: If/While Statement
1983 Variable=DOADMIN
1984 Value=0
1985 end
1986 item: Set Variable
1987 Variable=USE_HKCR
1988 Value=0
1989 end
1990 item: End Block
1991 end
1992 item: End Block
1993 end
1994 item: If/While Statement
1995 Variable=USE_HKCR
1996 Value=1
2007 end 1997 end
2008 item: Remark 1998 item: Remark
2009 Text=File types. 1999 Text=File types.
2010 end 2000 end
2011 item: Edit Registry 2001 item: Edit Registry
2095 end 2085 end
2096 item: Edit Registry 2086 item: Edit Registry
2097 Total Keys=1 2087 Total Keys=1
2098 Key=.pyo 2088 Key=.pyo
2099 New Value=Python.CompiledFile 2089 New Value=Python.CompiledFile
2090 end
2091 item: Else Statement
2092 end
2093 item: Remark
2094 Text=File types.
2095 end
2096 item: Edit Registry
2097 Total Keys=1
2098 Key=Software\CLASSES\Python.File
2099 New Value=Python File
2100 Root=1
2101 end
2102 item: Edit Registry
2103 Total Keys=1
2104 Key=Software\CLASSES\Python.File\shell\open\command
2105 New Value=%MAINDIR%\python.exe "%%1" %%*
2106 Root=1
2107 end
2108 item: Edit Registry
2109 Total Keys=1
2110 Key=Software\CLASSES\Python.File\DefaultIcon
2111 New Value=%MAINDIR%\Py.ico
2112 Root=1
2113 end
2114 item: Remark
2115 end
2116 item: Edit Registry
2117 Total Keys=1
2118 Key=Software\CLASSES\Python.NoConFile
2119 New Value=Python File (no console)
2120 Root=1
2121 end
2122 item: Edit Registry
2123 Total Keys=1
2124 Key=Software\CLASSES\Python.NoConFile\shell\open\command
2125 New Value=%MAINDIR%\pythonw.exe "%%1" %%*
2126 Root=1
2127 end
2128 item: Edit Registry
2129 Total Keys=1
2130 Key=Software\CLASSES\Python.NoConFile\DefaultIcon
2131 New Value=%MAINDIR%\Py.ico
2132 Root=1
2133 end
2134 item: Remark
2135 end
2136 item: Edit Registry
2137 Total Keys=1
2138 Key=Software\CLASSES\Python.CompiledFile
2139 New Value=Compiled Python File
2140 Root=1
2141 end
2142 item: Edit Registry
2143 Total Keys=1
2144 Key=Software\CLASSES\Python.CompiledFile\shell\open\command
2145 New Value=%MAINDIR%\python.exe "%%1" %%*
2146 Root=1
2147 end
2148 item: Edit Registry
2149 Total Keys=1
2150 Key=Software\CLASSES\Python.CompiledFile\DefaultIcon
2151 New Value=%MAINDIR%\pyc.ico
2152 Root=1
2153 end
2154 item: Remark
2155 end
2156 item: Remark
2157 Text=File extensions.
2158 end
2159 item: Edit Registry
2160 Total Keys=1
2161 Key=Software\CLASSES\.py
2162 New Value=Python.File
2163 Root=1
2164 end
2165 item: Edit Registry
2166 Total Keys=1
2167 Key=Software\CLASSES\.py
2168 New Value=text/plain
2169 Value Name=Content Type
2170 Root=1
2171 end
2172 item: Remark
2173 end
2174 item: Edit Registry
2175 Total Keys=1
2176 Key=Software\CLASSES\.pyw
2177 New Value=Python.NoConFile
2178 Root=1
2179 end
2180 item: Edit Registry
2181 Total Keys=1
2182 Key=Software\CLASSES\.pyw
2183 New Value=text/plain
2184 Value Name=Content Type
2185 Root=1
2186 end
2187 item: Remark
2188 end
2189 item: Edit Registry
2190 Total Keys=1
2191 Key=Software\CLASSES\.pyc
2192 New Value=Python.CompiledFile
2193 Root=1
2194 end
2195 item: Edit Registry
2196 Total Keys=1
2197 Key=Software\CLASSES\.pyo
2198 New Value=Python.CompiledFile
2199 Root=1
2100 end 2200 end
2101 item: End Block 2201 item: End Block
2102 end 2202 end
2103 item: Remark 2203 item: Remark
2104 end 2204 end