forked from weecology/retriever
-
Notifications
You must be signed in to change notification settings - Fork 0
/
retriever_installer.iss
53 lines (45 loc) · 1.84 KB
/
retriever_installer.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
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{0467A404-8C83-42A2-8C25-0903FBD14D9C}
AppName=Data Retriever
AppVersion=2.0.0
AppPublisher=Weecology
AppPublisherURL=http://data-retriever.org
AppSupportURL=http://data-retriever.org
AppUpdatesURL=http://data-retriever.org
DefaultDirName={pf}\DataRetriever
DefaultGroupName=Data Retriever
OutputBaseFilename=RetrieverSetup
SetupIconFile=icon.ico
Compression=lzma
SolidCompression=yes
ChangesEnvironment=true
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: modifypath; Description: Add application directory to your environmental path
[Files]
Source: "dist\packages\retriever.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "dist\packages\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\Data Retriever"; Filename: "{app}\retriever.exe"
Name: "{group}\{cm:UninstallProgram, Data Retriever}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Data Retriever"; Filename: "{app}\retriever.exe"; Tasks: desktopicon
[Code]
const
ModPathName = 'modifypath';
ModPathType = 'system';
function ModPathDir(): TArrayOfString;
begin
setArrayLength(Result, 1)
Result[0] := ExpandConstant('{app}');
end;
#include "modpath.iss"
[Run]
Filename: "{app}\retriever.exe"; Description: "{cm:LaunchProgram, Data Retriever}"; Flags: nowait postinstall skipifsilent