mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
New runtime vrbl DOADMIN. When false, we never try to write under HKLM,
and install the Python and MS runtime DLLs into the Python dir instead of a system dir. Initial value is taken from new compiler vrbl _DOADMIN_ (default true), and forced to false if the user doesn't have admin privs. This makes it possible to *test* non-admin installs on machines where the distinction doesn't exist (like my home box), via just changing _DOADMIN_. It may also be useful for users who don't *want* an installer to scribble into their system dir (for example, me(! most days)), but that would require adding more GUI to let them get at it.
This commit is contained in:
parent
4de219d511
commit
67b9adaa87
2 changed files with 38 additions and 15 deletions
|
@ -25,7 +25,7 @@ item: Remark
|
||||||
Text=Note from Tim: This is a verbatim copy of Wise's Uninstal.wse, altered at the end to write
|
Text=Note from Tim: This is a verbatim copy of Wise's Uninstal.wse, altered at the end to write
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=uninstall info under HKCU instead of HKLM if the user doesn't have Admin privs.
|
Text=uninstall info under HKCU instead of HKLM if our DOADMIN var is false.
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
|
@ -433,8 +433,9 @@ end
|
||||||
item: Check Configuration
|
item: Check Configuration
|
||||||
Flags=10111011
|
Flags=10111011
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Write uninstall info under HKLM. This if/else/end block added by Tim.
|
Text=Write uninstall info under HKLM. This if/else/end block added by Tim.
|
||||||
|
|
|
@ -25,7 +25,7 @@ item: Global
|
||||||
Version Copyright=©2001 Python Software Foundation
|
Version Copyright=©2001 Python Software Foundation
|
||||||
Version Company=PythonLabs at Zope Corporation
|
Version Company=PythonLabs at Zope Corporation
|
||||||
Crystal Format=10111100101100000010001001001001
|
Crystal Format=10111100101100000010001001001001
|
||||||
Step View=&All
|
Step View=&Properties
|
||||||
Variable Name1=_WISE_
|
Variable Name1=_WISE_
|
||||||
Variable Description1=WISE root directory
|
Variable Description1=WISE root directory
|
||||||
Variable Default1=C:\PROGRAM FILES\WISE INSTALLMASTER 8.1
|
Variable Default1=C:\PROGRAM FILES\WISE INSTALLMASTER 8.1
|
||||||
|
@ -52,6 +52,15 @@ item: Global
|
||||||
Variable Description6=Python minor version number; the 3 in 2.3
|
Variable Description6=Python minor version number; the 3 in 2.3
|
||||||
Variable Default6=2
|
Variable Default6=2
|
||||||
Variable Flags6=00001000
|
Variable Flags6=00001000
|
||||||
|
Variable Name7=_DOADMIN_
|
||||||
|
Variable Description7=The initial value for %DOADMIN%.
|
||||||
|
Variable Description7=When 0, we never try to write under HKLM,
|
||||||
|
Variable Description7=and install the Python + MS runtime DLLs in
|
||||||
|
Variable Description7=the Python directory instead of the system dir.
|
||||||
|
Variable Default7=1
|
||||||
|
Variable Values7=1
|
||||||
|
Variable Values7=0
|
||||||
|
Variable Flags7=00001010
|
||||||
end
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
Variable=PYVER_STRING
|
Variable=PYVER_STRING
|
||||||
|
@ -113,12 +122,20 @@ item: Set Variable
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
|
item: Set Variable
|
||||||
|
Variable=DOADMIN
|
||||||
|
Value=%_DOADMIN_%
|
||||||
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Give non-admin users a chance to abort.
|
Text=Give non-admin users a chance to abort.
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: Check Configuration
|
||||||
Flags=10011111
|
Flags=10011111
|
||||||
end
|
end
|
||||||
|
item: Set Variable
|
||||||
|
Variable=DOADMIN
|
||||||
|
Value=0
|
||||||
|
end
|
||||||
item: Display Message
|
item: Display Message
|
||||||
Title=Doing non-admin install
|
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=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).
|
||||||
|
@ -266,8 +283,9 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=E: register file extensions (requires Admin privs)
|
Text=E: register file extensions (requires Admin privs)
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
Variable=COMPONENTS
|
Variable=COMPONENTS
|
||||||
|
@ -1307,8 +1325,9 @@ item: Remark
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Set Variable
|
item: Set Variable
|
||||||
Variable=DLLDEST
|
Variable=DLLDEST
|
||||||
|
@ -2089,8 +2108,9 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical!
|
Text=Write to HKLM for admin, else HKCU. Keep these blocks otherwise identical!
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Edit Registry
|
item: Edit Registry
|
||||||
Total Keys=1
|
Total Keys=1
|
||||||
|
@ -2181,8 +2201,9 @@ item: If/While Statement
|
||||||
Value=B
|
Value=B
|
||||||
Flags=00001010
|
Flags=00001010
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Edit Registry
|
item: Edit Registry
|
||||||
Total Keys=1
|
Total Keys=1
|
||||||
|
@ -2219,8 +2240,9 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Installation Expert, it only shows up in the "If" block below. Keep in synch!
|
Text=Installation Expert, it only shows up in the "If" block below. Keep in synch!
|
||||||
end
|
end
|
||||||
item: Check Configuration
|
item: If/While Statement
|
||||||
Flags=10111111
|
Variable=DOADMIN
|
||||||
|
Value=1
|
||||||
end
|
end
|
||||||
item: Edit Registry
|
item: Edit Registry
|
||||||
Total Keys=1
|
Total Keys=1
|
||||||
|
@ -2285,7 +2307,7 @@ end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
Text=Populate Start Menu
|
Text=Populate Start Menu group
|
||||||
end
|
end
|
||||||
item: Remark
|
item: Remark
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue