Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 205eb72

Browse files
committed
Use registry key ProgramFilesDir as default MAINDIR
1 parent 6656d1f commit 205eb72

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

PC/python15.wse

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ item: Set Variable
6565
Variable=DISABLED
6666
Value=!
6767
end
68-
item: Set Variable
68+
remarked item: Set Variable
6969
Variable=MAINDIR
7070
Value=Python
7171
end
@@ -92,9 +92,16 @@ end
9292
item: Remark
9393
Text=Dont use "Program Files" for Python! (why not?)
9494
end
95+
item: Get Registry Key Value
96+
Variable=MAINDIR
97+
Key=SOFTWARE\Microsoft\Windows\CurrentVersion
98+
Default=C:
99+
Value Name=ProgramFilesDir
100+
Flags=00000100
101+
end
95102
item: Set Variable
96103
Variable=MAINDIR
97-
Value=C:\%MAINDIR%
104+
Value=%MAINDIR%\Python
98105
end
99106
item: Set Variable
100107
Variable=BACKUP
@@ -830,6 +837,12 @@ item: Install File
830837
Description=Python Documentation (HTML)
831838
Flags=0000000000000010
832839
end
840+
item: Install File
841+
Source=%_SRC_%\Doc\ref\*.html
842+
Destination=%MAINDIR%\Doc\ref
843+
Description=Python Documentation (HTML)
844+
Flags=0000000000000010
845+
end
833846
item: End Block
834847
end
835848
item: If/While Statement
@@ -948,7 +961,7 @@ item: If/While Statement
948961
end
949962
item: Edit Registry
950963
Key=Software\Python\PythonCore\%PY_VERSION%\Help\Main Python Documentation
951-
New Value=%MAINDIR%\doc\lib\index.html
964+
New Value=%MAINDIR%\doc\index.html
952965
Root=2
953966
end
954967
item: End Block

0 commit comments

Comments
 (0)