|
1 | 1 | #include <.\idp\idp.iss> |
2 | 2 |
|
3 | | -#define SickChillInstallerVersion "v0.5.9" |
| 3 | +#define SickChillInstallerVersion "v0.5.10" |
4 | 4 |
|
5 | 5 | #define AppId "{{B0D7EA3E-CC34-4BE6-95D5-3C3D31E9E1B2}" |
6 | 6 | #define AppName "SickChill" |
@@ -72,8 +72,8 @@ Filename: "{app}\Git\cmd\git.exe"; Parameters: "clone {#AppRepoUrl} ""{app}\{#Ap |
72 | 72 | ;Service |
73 | 73 | Filename: "{app}\Installer\nssm.exe"; Parameters: "start ""{#AppServiceName}"""; Flags: runhidden; BeforeInstall: CreateService; StatusMsg: "Starting {#AppName} service..." |
74 | 74 | ;Firewall |
75 | | -Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} In"" program=""{app}\Python3\python.exe"" dir=in action=allow enable=yes"; Flags: runhidden; |
76 | | -Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} Out"" program=""{app}\Python3\python.exe"" dir=out action=allow enable=yes"; Flags: runhidden; |
| 75 | +Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} In"" program=""{app}\Python3\tools\python.exe"" dir=in action=allow enable=yes"; Flags: runhidden; |
| 76 | +Filename: "{sys}\netsh.exe"; Parameters: "advfirewall firewall add rule name=""{#AppServiceName} Out"" program=""{app}\Python3\tools\python.exe"" dir=out action=allow enable=yes"; Flags: runhidden; |
77 | 77 | ;Open |
78 | 78 | Filename: "http://localhost:{code:GetWebPort}/"; Flags: postinstall shellexec; Description: "Open {#AppName} in browser" |
79 | 79 |
|
@@ -350,7 +350,7 @@ begin |
350 | 350 | OldProgressString := WizardForm.StatusLabel.Caption; |
351 | 351 | WizardForm.StatusLabel.Caption := ExpandConstant('Installing {#AppName} service...') |
352 | 352 |
|
353 | | - Exec(Nssm, ExpandConstant('install "{#AppServiceName}" "{app}\Python3\python.exe" """{app}\{#AppName}\SickChill.py""" --nolaunch --port='+GetWebPort('')+' --datadir="""{app}\Data"""'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) |
| 353 | + Exec(Nssm, ExpandConstant('install "{#AppServiceName}" "{app}\Python3\tools\python.exe" """{app}\{#AppName}\SickChill.py""" --nolaunch --port='+GetWebPort('')+' --datadir="""{app}\Data"""'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) |
354 | 354 | Exec(Nssm, ExpandConstant('set "{#AppServiceName}" AppDirectory "{app}\Data"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) |
355 | 355 | Exec(Nssm, ExpandConstant('set "{#AppServiceName}" Description "{#AppServiceDescription}"'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) |
356 | 356 | Exec(Nssm, ExpandConstant('set "{#AppServiceName}" AppStopMethodSkip 6'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) |
@@ -392,7 +392,7 @@ procedure CleanPython(); |
392 | 392 | var |
393 | 393 | PythonPath: String; |
394 | 394 | begin |
395 | | - PythonPath := ExpandConstant('{app}\Python3') |
| 395 | + PythonPath := ExpandConstant('{app}\Python3\tools') |
396 | 396 |
|
397 | 397 | DelTree(PythonPath + '\*.msi', False, True, False) |
398 | 398 | DelTree(PythonPath + '\Doc', True, True, True) |
@@ -437,9 +437,9 @@ begin |
437 | 437 |
|
438 | 438 | TargetFolder.CopyHere(ZipFile.Items, SHCONTCH_NOPROGRESSBOX or SHCONTCH_RESPONDYESTOALL); |
439 | 439 |
|
440 | | - PythonPTHFile := ExpandConstant('{app}\Python3\python38._pth'); |
441 | | - SaveStringToFile(PythonPTHFile, #13#10 + '..\SickChill' + #13#10, True); |
442 | | - SaveStringToFile(PythonPTHFile, #13#10 + 'import site' + #13#10, True); |
| 440 | +; PythonPTHFile := ExpandConstant('{app}\Python3\python38._pth'); |
| 441 | +; SaveStringToFile(PythonPTHFile, #13#10 + '..\SickChill' + #13#10, True); |
| 442 | +; SaveStringToFile(PythonPTHFile, #13#10 + 'import site' + #13#10, True); |
443 | 443 |
|
444 | 444 | CleanPython() |
445 | 445 | InstallDepPage.SetProgress(InstallDepPage.ProgressBar.Position+1, InstallDepPage.ProgressBar.Max) |
|
0 commit comments