-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.iss
78 lines (67 loc) · 3.46 KB
/
setup.iss
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
75
76
77
78
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define protected AppName "MetGem"
#define protected AppId "{15225AA3-EFDB-4261-A26D-138260F4B3D2}"
#define protected AppVersion GetVersionNumbersString("dist/MetGem/MetGem.exe")
#define AppPublisher "CNRS/ICSN"
#define AppURL "https://metgem.github.io"
#define AppExeName "MetGem.exe"
#include "isportable.iss"
#include "isversion.iss"
[Setup]
AppId={{#AppId}
AppName={#AppName}
AppVersion={#AppVersion}
AppVerName={#AppName} {#AppVersion}
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}
DefaultDirName={code:DefaultInstallDirectory}\{#AppName}
DefaultGroupName={#AppName}
AllowNoIcons=yes
OutputBaseFilename=setup_{#AppName}
SolidCompression=no
OutputDir=.
SetupIconFile=main.ico
WizardImageFile=wiz-image.bmp
WizardSmallImageFile=wiz-small-image.bmp
WizardImageAlphaFormat=defined
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
ChangesAssociations=True
LicenseFile=LICENSE
Compression=lzma2/fast
WizardStyle=modern
Uninstallable=not IsPortable
CreateUninstallRegKey=yes
DisableDirPage=no
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; Check: not IsPortable
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsPortable
Name: "iconscurrentuser"; Description: "{cm:IconsCurrentUser}"; GroupDescription: "{cm:CreateIconsFor}"; Flags: exclusive; Check: not IsRegularUser and not IsPortable
Name: "iconscommon"; Description: "{cm:IconsAllUsers}"; GroupDescription: "{cm:CreateIconsFor}"; Flags: exclusive unchecked; Check: not IsRegularUser and not IsPortable
[Dirs]
Name: "{app}\data"; Check: IsPortable
[Files]
Source: "dist\{#AppName}\{#AppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "dist\{#AppName}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "build\api-ms-win-core-path-l1-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion; OnlyBelowVersion: 6.2
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"
Name: "{group}\{cm:UninstallProgram,{#AppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Registry]
Root: HKCR; SubKey: ".mnz"; ValueType: string; ValueData: "Molecular Network"; Flags: uninsdeletekey; Check: not IsPortable
Root: HKCR; SubKey: "Molecular Network"; ValueType: string; ValueData: "Molecular Network"; Flags: uninsdeletekey; Check: not IsPortable
Root: HKCR; SubKey: "Molecular Network\Shell\Open\Command"; ValueType: string; ValueData: """{app}\{#AppExeName}"" ""%1"""; Flags: uninsdeletekey; Check: not IsPortable
Root: HKCR; Subkey: "Molecular Network\DefaultIcon"; ValueType: string; ValueData: "{app}\{#AppExeName},0"; Flags: uninsdeletevalue; Check: not IsPortable
[InstallDelete]
; Remove desktop icon if needed
Type: files; Name: {autodesktop}\{#AppName}.lnk; Tasks: not desktopicon; Check: not IsPortable