mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use registry key ProgramFilesDir as default MAINDIR
This commit is contained in:
parent
6656d1f041
commit
205eb72217
1 changed files with 16 additions and 3 deletions
|
@ -65,7 +65,7 @@ item: Set Variable
|
||||||
Variable=DISABLED
|
Variable=DISABLED
|
||||||
Value=!
|
Value=!
|
||||||
end
|
end
|
||||||
item: Set Variable
|
remarked item: Set Variable
|
||||||
Variable=MAINDIR
|
Variable=MAINDIR
|
||||||
Value=Python
|
Value=Python
|
||||||
end
|
end
|
||||||
|
@ -92,9 +92,16 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Dont use "Program Files" for Python! (why not?)
|
Text=Dont use "Program Files" for Python! (why not?)
|
||||||
end
|
end
|
||||||
|
item: Get Registry Key Value
|
||||||
|
Variable=MAINDIR
|
||||||
|
Key=SOFTWARE\Microsoft\Windows\CurrentVersion
|
||||||
|
Default=C:
|
||||||
|
Value Name=ProgramFilesDir
|
||||||
|
Flags=00000100
|
||||||
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
Variable=MAINDIR
|
Variable=MAINDIR
|
||||||
Value=C:\%MAINDIR%
|
Value=%MAINDIR%\Python
|
||||||
end
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
Variable=BACKUP
|
Variable=BACKUP
|
||||||
|
@ -830,6 +837,12 @@ item: Install File
|
||||||
Description=Python Documentation (HTML)
|
Description=Python Documentation (HTML)
|
||||||
Flags=0000000000000010
|
Flags=0000000000000010
|
||||||
end
|
end
|
||||||
|
item: Install File
|
||||||
|
Source=%_SRC_%\Doc\ref\*.html
|
||||||
|
Destination=%MAINDIR%\Doc\ref
|
||||||
|
Description=Python Documentation (HTML)
|
||||||
|
Flags=0000000000000010
|
||||||
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
item: If/While Statement
|
item: If/While Statement
|
||||||
|
@ -948,7 +961,7 @@ item: If/While Statement
|
||||||
end
|
end
|
||||||
item: Edit Registry
|
item: Edit Registry
|
||||||
Key=Software\Python\PythonCore\%PY_VERSION%\Help\Main Python Documentation
|
Key=Software\Python\PythonCore\%PY_VERSION%\Help\Main Python Documentation
|
||||||
New Value=%MAINDIR%\doc\lib\index.html
|
New Value=%MAINDIR%\doc\index.html
|
||||||
Root=2
|
Root=2
|
||||||
end
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue