mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Back off to HKCU (instead of HKLM) if user doesn't have "NT adminstrator
privileges". Untested except on Win98SE (where Wise writes to HKLM).
This commit is contained in:
parent
7bd25be508
commit
f6f6fa237f
1 changed files with 61 additions and 1 deletions
|
@ -50,7 +50,7 @@ item: Set Variable
|
||||||
end
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
remarked item: Check Configuration
|
||||||
Message=Sorry, but we can not install Python on your system unless you have Administrator Privileges.
|
Message=Sorry, but we can not install Python on your system unless you have Administrator Privileges.
|
||||||
Message=
|
Message=
|
||||||
Message=Please log on as an Administrator, and start the installation again.
|
Message=Please log on as an Administrator, and start the installation again.
|
||||||
|
@ -981,6 +981,12 @@ item: Edit Registry
|
||||||
Key=Python.CompiledFile\DefaultIcon
|
Key=Python.CompiledFile\DefaultIcon
|
||||||
New Value=%MAINDIR%\pyc.ico
|
New Value=%MAINDIR%\pyc.ico
|
||||||
end
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical!
|
||||||
|
end
|
||||||
|
item: Check Configuration
|
||||||
|
Flags=10111111
|
||||||
|
end
|
||||||
item: Edit Registry
|
item: Edit Registry
|
||||||
Key=Software\Python\PythonCore\CurrentVersion
|
Key=Software\Python\PythonCore\CurrentVersion
|
||||||
Root=130
|
Root=130
|
||||||
|
@ -1009,6 +1015,45 @@ item: Edit Registry
|
||||||
New Value=%MAINDIR%\Python.exe
|
New Value=%MAINDIR%\Python.exe
|
||||||
Root=2
|
Root=2
|
||||||
end
|
end
|
||||||
|
item: Else Statement
|
||||||
|
end
|
||||||
|
item: Display Message
|
||||||
|
Title=Doing non-admin install
|
||||||
|
Text=The current login does not have Administrator Privileges on this machine. Python will install its registry information into the per-user area only for the current login, instead of into the per-machine area for every account on this machine. Some advanced uses of Python may not work as a result (for example, running a Python script as a service).
|
||||||
|
Text=
|
||||||
|
Text=If this is not what you want, please log on as an Administrator, and start the installation again.
|
||||||
|
Flags=00001000
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\CurrentVersion
|
||||||
|
Root=129
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\%PY_VERSION%\InstallPath
|
||||||
|
New Value=%MAINDIR%
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\%PY_VERSION%\InstallPath\InstallGroup
|
||||||
|
New Value=%GROUP%
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\%PY_VERSION%\PythonPath
|
||||||
|
New Value=%MAINDIR%\Lib\plat-win;%MAINDIR%\Lib;%MAINDIR%\DLLs;%MAINDIR%\Lib\lib-tk
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\%PY_VERSION%\Modules
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe
|
||||||
|
New Value=%MAINDIR%\Python.exe
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: End Block
|
||||||
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
item: If/While Statement
|
item: If/While Statement
|
||||||
|
@ -1016,11 +1061,26 @@ item: If/While Statement
|
||||||
Value=B
|
Value=B
|
||||||
Flags=00001010
|
Flags=00001010
|
||||||
end
|
end
|
||||||
|
item: Remark
|
||||||
|
Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical!
|
||||||
|
end
|
||||||
|
item: Check Configuration
|
||||||
|
Flags=10111111
|
||||||
|
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\index.html
|
New Value=%MAINDIR%\Doc\index.html
|
||||||
Root=2
|
Root=2
|
||||||
end
|
end
|
||||||
|
item: Else Statement
|
||||||
|
end
|
||||||
|
item: Edit Registry
|
||||||
|
Key=Software\Python\PythonCore\%PY_VERSION%\Help\Main Python Documentation
|
||||||
|
New Value=%MAINDIR%\Doc\index.html
|
||||||
|
Root=1
|
||||||
|
end
|
||||||
|
item: End Block
|
||||||
|
end
|
||||||
item: End Block
|
item: End Block
|
||||||
end
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue