-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller_windows.iss
executable file
·48 lines (37 loc) · 1.34 KB
/
installer_windows.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
; -- installer_windows.iss --
; This is the installator creator for snaut
#define snautVersion "0.1.5"
[Setup]
AppName=snaut
AppVersion={#snautVersion}
DefaultDirName={pf}\snaut
SetupIconFile=utils\windows\icon.ico
; Since no icons will be created in "{group}", we don't need the wizard
; to ask for a Start Menu folder name:
DisableProgramGroupPage=yes
OutputBaseFilename=snaut-setup-{#snautVersion}
OutputDir=windows_installer
[Files]
Source: "dist\*.*"; DestDir: "{app}" ; Flags: recursesubdirs
; Source: "dist\snaut.bat"; DestDir: "{app}";
[Icons]
Name: "{group}\snaut"; Filename: "{app}\snaut.bat"; WorkingDir: "{app}"; IconFilename: "{app}\icon.ico";
Name: "{commondesktop}\snaut"; Filename: "{app}\snaut.bat"; WorkingDir: "{app}"; IconFilename: "{app}\icon.ico";
[INI]
; this is set using the Pascal code below, it asks for the folder path
Filename: "{app}\config_local.ini"; Section: "semantic_space"; Key: "semspaces_dir"; String: "{code:DataDir}"
[Code]
var DataDirVar : String;
function DataDir(param: String) : String;
var
Dir : String;
begin
if DataDirVar = '' then
begin
CreateDir(ExpandConstant('{userdocs}\semantic spaces'));
Dir := ExpandConstant('{userdocs}\semantic spaces');
BrowseForFolder('Select folder in which you want to store semantic spaces.', Dir, true);
DataDirVar := Dir;
end;
result := DataDirVar;
end;