Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -91,9 +91,9 @@ Function ShowPasswordPage
|
|
91 |
nsDialogs::Create 1018
|
92 |
Pop $DialogHandle
|
93 |
|
94 |
-
|
95 |
Pop $0
|
96 |
-
|
97 |
Pop $PasswordInput
|
98 |
|
99 |
nsDialogs::Show
|
@@ -101,7 +101,7 @@ FunctionEnd
|
|
101 |
|
102 |
# Password check logic
|
103 |
Function CheckPassword
|
104 |
-
|
105 |
StrCmp $PASSWORD "yourpassword" 0 +3
|
106 |
MessageBox MB_OK "Password accepted"
|
107 |
Return
|
|
|
91 |
nsDialogs::Create 1018
|
92 |
Pop $DialogHandle
|
93 |
|
94 |
+
nsDialogs::CreateLabel 10u 10u 100% 12u "Please enter the installation password:"
|
95 |
Pop $0
|
96 |
+
nsDialogs::CreatePassword 10u 25u 100% 12u ""
|
97 |
Pop $PasswordInput
|
98 |
|
99 |
nsDialogs::Show
|
|
|
101 |
|
102 |
# Password check logic
|
103 |
Function CheckPassword
|
104 |
+
nsDialogs::GetText $PasswordInput $PASSWORD
|
105 |
StrCmp $PASSWORD "yourpassword" 0 +3
|
106 |
MessageBox MB_OK "Password accepted"
|
107 |
Return
|