|
5 | 5 | #define AppName "ClinicalDBSAnnotator" |
6 | 6 | #define AppVersion "0.3.0" |
7 | 7 | #define AppPublisher "Brain Modulation Lab" |
8 | | -#define AppURL "https://github.com/bml/clinical-dbs-annotator" |
| 8 | +#define AppURL "https://github.com/bml/dbs-annotator" |
9 | 9 | #define AppExeName "ClinicalDBSAnnotator_Windows_0_3_0.exe" |
10 | 10 |
|
11 | 11 | [Setup] |
12 | | -AppId={{{{A1B2C3D4-E5F6-7890-ABCD-EF1234567890}}}} |
13 | | -AppName={{{{#AppName}}}} |
14 | | -AppVersion={{{{#AppVersion}}}} |
15 | | -AppPublisher={{{{#AppPublisher}}}} |
16 | | -AppPublisherURL={{{{#AppURL}}}} |
17 | | -AppSupportURL={{{{#AppURL}}}} |
18 | | -AppUpdatesURL={{{{#AppURL}}}} |
19 | | -DefaultDirName={{{{autopf}}}}\{{{{{#AppName}}}}} |
20 | | -DefaultGroupName={{{{#AppName}}}} |
| 12 | +AppId={{A1B2C3D4-E5F6-7890-ABCD-EF1234567890} |
| 13 | +AppName={#AppName} |
| 14 | +AppVersion={#AppVersion} |
| 15 | +AppPublisher={#AppPublisher} |
| 16 | +AppPublisherURL={#AppURL} |
| 17 | +AppSupportURL={#AppURL} |
| 18 | +AppUpdatesURL={#AppURL} |
| 19 | +DefaultDirName={autopf}\{#AppName} |
| 20 | +DefaultGroupName={#AppName} |
21 | 21 | AllowNoIcons=yes |
22 | 22 | OutputDir=installer_output |
23 | | -OutputBaseFilename={{{{#AppName}}}}_Setup_{{{{{#AppVersion}}}}_Windows |
| 23 | +OutputBaseFilename={#AppName}_Setup_{#AppVersion}_Windows |
24 | 24 | Compression=lzma2/max |
25 | 25 | SolidCompression=yes |
26 | 26 | WizardStyle=Modern |
27 | | -WizardImageFile=..\icons\logoneutral.bmp |
28 | | -WizardSmallImageFile=..\icons\logoneutral-small.bmp |
29 | 27 | SetupIconFile=..\icons\logoneutral.ico |
30 | | -UninstallDisplayIcon={{{{app}}}}\{{{{{#AppExeName}}}}} |
| 28 | +UninstallDisplayIcon={app}\{#AppExeName} |
31 | 29 | ChangesAssociations=yes |
32 | 30 |
|
33 | 31 | [Languages] |
34 | 32 | Name: "english"; MessagesFile: "compiler:Default.isl" |
35 | 33 | Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl" |
36 | 34 |
|
37 | 35 | [Tasks] |
38 | | -Name: "desktopicon"; Description: "{{{{cm:CreateDesktopIcon}}}}"; GroupDescription: "{{{{cm:AdditionalIcons}}}}" |
39 | | -Name: "quicklaunchicon"; Description: "{{{{cm:CreateQuickLaunchIcon}}}}"; GroupDescription: "{{{{cm:AdditionalIcons}}}}"; OnlyBelowVersion: 6.1 |
| 36 | +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" |
| 37 | +Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; OnlyBelowVersion: 6.1 |
40 | 38 |
|
41 | 39 | [Files] |
42 | 40 | ; Main application files from PyInstaller onedir build |
43 | | -Source: "dist\ClinicalDBSAnnotator_Windows_0_3_0\*"; DestDir: "{{{{app}}}}"; Flags: ignoreversion recursesubdirs createallsubdirs |
| 41 | +Source: "dist\ClinicalDBSAnnotator_Windows_0_3_0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs |
44 | 42 | ; Icon file for shortcuts |
45 | | -Source: "..\icons\logoneutral.ico"; DestDir: "{{{{app}}}}"; Flags: ignoreversion |
| 43 | +Source: "..\icons\logoneutral.ico"; DestDir: "{app}"; Flags: ignoreversion |
46 | 44 |
|
47 | 45 | [Icons] |
48 | | -Name: "{{{{group}}}}\{{{{{#AppName}}}}"; Filename: "{{{{app}}}}\{{{{{#AppExeName}}}}"; IconFilename: "{{{{app}}}}\logoneutral.ico" |
49 | | -Name: "{{{{commondesktop}}}}\{{{{{#AppName}}}}"; Filename: "{{{{app}}}}\{{{{{#AppExeName}}}}"; IconFilename: "{{{{app}}}}\logoneutral.ico"; Tasks: desktopicon |
50 | | -Name: "{{{{userappdata}}}}\Microsoft\Internet Explorer\Quick Launch\{{{{{#AppName}}}}"; Filename: "{{{{app}}}}\{{{{{#AppExeName}}}}"; IconFilename: "{{{{app}}}}\logoneutral.ico"; Tasks: quicklaunchicon |
| 46 | +Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"; IconFilename: "{app}\logoneutral.ico" |
| 47 | +Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; IconFilename: "{app}\logoneutral.ico"; Tasks: desktopicon |
| 48 | +Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#AppName}"; Filename: "{app}\{#AppExeName}"; IconFilename: "{app}\logoneutral.ico"; Tasks: quicklaunchicon |
51 | 49 |
|
52 | 50 | [Run] |
53 | | -Filename: "{{{{app}}}}\{{{{{#AppExeName}}}}"; Description: "{{{{cm:LaunchProgram,{{{{#StringChange(AppName, '&', '&&')}}}}}}"; Flags: nowait postinstall skipifsilent |
| 51 | +Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent |
54 | 52 |
|
55 | 53 | [Registry] |
56 | 54 | ; File association for .tsv annotation files |
57 | 55 | Root: HKCR; Subkey: ".tsv\OpenWithProgids"; ValueType: string; ValueName: "ClinicalDBSAnnotator.tsv"; ValueData: ""; Flags: uninsdeletevalue |
58 | 56 | Root: HKCR; Subkey: "ClinicalDBSAnnotator.tsv"; ValueType: string; ValueName: ""; ValueData: "Clinical DBS Annotator File"; Flags: uninsdeletekey |
59 | | -Root: HKCR; Subkey: "ClinicalDBSAnnotator.tsv\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{{{{app}}}}\logoneutral.ico,0" |
60 | | -Root: HKCR; Subkey: "ClinicalDBSAnnotator.tsv\shell\open\command"; ValueType: string; ValueName: ""; ValueData: '"{{{{app}}}}\{{{{{#AppExeName}}}}" "%1"' |
| 57 | +Root: HKCR; Subkey: "ClinicalDBSAnnotator.tsv\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\logoneutral.ico,0" |
| 58 | +Root: HKCR; Subkey: "ClinicalDBSAnnotator.tsv\shell\open\command"; ValueType: string; ValueName: ""; ValueData: ""{app}\{#AppExeName}" "%1"" |
61 | 59 |
|
62 | 60 | [UninstallDelete] |
63 | | -Type: filesandordirs; Name: "{{{{app}}}} |
| 61 | +Type: filesandordirs; Name: "{app}" |
0 commit comments