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

Skip to content

Commit 9a83b92

Browse files
committed
Guido pointed out that the "non-admin install" blurb got displayed
very late in the process when running on Windows 2000 without admim privs. Rearranged so that the admin check is done at the start instead. Added words to the end of the blurb to make it very clear how to abort the install (wasn't obvious to me that "Cancel" was the right thing to click).
1 parent 6f8f92f commit 9a83b92

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

PCbuild/python20.wse

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,17 @@ item: Set Variable
5050
end
5151
item: End Block
5252
end
53-
remarked item: Check Configuration
54-
Message=Sorry, but we can not install Python on your system unless you have Administrator Privileges.
55-
Message=
56-
Message=Please log on as an Administrator, and start the installation again.
57-
Title=Must have administrator rights
58-
Flags=01011111
53+
item: Check Configuration
54+
Flags=10011111
55+
end
56+
item: Display Message
57+
Title=Doing non-admin install
58+
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).
59+
Text=
60+
Text=If this is not what you want, please click Cancel to abort this installation, log on as an Administrator, and start the installation again.
61+
Flags=00001000
62+
end
63+
item: End Block
5964
end
6065
item: Set Variable
6166
Variable=APPTITLE
@@ -1017,13 +1022,6 @@ item: Edit Registry
10171022
end
10181023
item: Else Statement
10191024
end
1020-
item: Display Message
1021-
Title=Doing non-admin install
1022-
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).
1023-
Text=
1024-
Text=If this is not what you want, please log on as an Administrator, and start the installation again.
1025-
Flags=00001000
1026-
end
10271025
item: Edit Registry
10281026
Key=Software\Python\PythonCore\CurrentVersion
10291027
Root=129

0 commit comments

Comments
 (0)