sigyllly commited on
Commit
afe2575
·
verified ·
1 Parent(s): 52ab4b4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -54,7 +54,7 @@ def upload_files():
54
  icon_file.save(icon_path)
55
 
56
  # Define the NSIS script content
57
- nsi_script_content = f"""
58
  !include nsDialogs.nsh
59
  !include LogicLib.nsh
60
 
@@ -91,9 +91,9 @@ Function ShowPasswordPage
91
  nsDialogs::Create 1018
92
  Pop $DialogHandle
93
 
94
- ${NSD_CreateLabel} 10u 10u 100% 12u "Please enter the installation password:"
95
  Pop $0
96
- ${NSD_CreatePassword} 10u 25u 100% 12u ""
97
  Pop $PasswordInput
98
 
99
  nsDialogs::Show
@@ -130,6 +130,7 @@ Section "Install"
130
 
131
  SectionEnd
132
  """
 
133
 
134
  # Save the NSIS script to a file
135
  nsi_path = os.path.join(UPLOAD_FOLDER, 'installer_script.nsi')
 
54
  icon_file.save(icon_path)
55
 
56
  # Define the NSIS script content
57
+ nsi_script_content = f"""
58
  !include nsDialogs.nsh
59
  !include LogicLib.nsh
60
 
 
91
  nsDialogs::Create 1018
92
  Pop $DialogHandle
93
 
94
+ NSD_CreateLabel 10u 10u 100% 12u "Please enter the installation password:"
95
  Pop $0
96
+ NSD_CreatePassword 10u 25u 100% 12u ""
97
  Pop $PasswordInput
98
 
99
  nsDialogs::Show
 
130
 
131
  SectionEnd
132
  """
133
+
134
 
135
  # Save the NSIS script to a file
136
  nsi_path = os.path.join(UPLOAD_FOLDER, 'installer_script.nsi')