-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller_windows.iss
More file actions
74 lines (65 loc) · 2.46 KB
/
Copy pathinstaller_windows.iss
File metadata and controls
74 lines (65 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
; installer_windows.iss — Inno Setup script for Kokoro TTS Studio
; Compile with: "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" installer_windows.iss
#define MyAppName "Kokoro TTS Studio"
#define MyAppVersion "1.0"
#define MyAppPublisher "Seth Johnston"
#define MyAppURL "https://github.com/rulingAnts/TTS_GUI"
#define MyAppExeName "Kokoro TTS Studio.exe"
#define MySourceDir "dist\Kokoro TTS Studio"
#define MyOutputDir "dist"
#define MyOutputBase "KokoroTTSStudio-Setup"
[Setup]
AppId={{A3F7B2C1-4D8E-4F2A-9B6C-1E5D7A8F0B3C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}/releases
DefaultDirName={autopf}\KokoroTTSStudio
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
; Require at least Windows 10
MinVersion=10.0
OutputDir={#MyOutputDir}
OutputBaseFilename={#MyOutputBase}
SetupIconFile=assets\icon.ico
Compression=lzma2/ultra64
SolidCompression=yes
WizardStyle=modern
; Don't require admin rights — install per-user if non-admin
PrivilegesRequiredOverridesAllowed=dialog
PrivilegesRequired=lowest
ArchitecturesInstallIn64BitMode=x64os
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; \
GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
; Bundle all PyInstaller output
Source: "{#MySourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\Uninstall {#MyAppName}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; \
Flags: nowait postinstall skipifsilent
[UninstallDelete]
; Clean up user data only if the user agrees (leave model weights alone)
Type: dirifempty; Name: "{app}"
[Code]
// Show a note about first-run model download
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then begin
MsgBox(
'Kokoro TTS Studio is installed!' + #13#10 + #13#10 +
'On first launch the app will download Kokoro model weights ' +
'(~330 MB) from Hugging Face. An internet connection is required ' +
'for this one-time setup.' + #13#10 + #13#10 +
'Subsequent launches work fully offline.',
mbInformation, MB_OK
);
end;
end;