-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsift.iss
executable file
·40 lines (35 loc) · 1.24 KB
/
sift.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
; -- sift.iss --
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
AppName=SIFT
AppVersion=2.0.0b1
DefaultDirName={pf}\SIFT
DefaultGroupName=SIFT
Compression=lzma2
SolidCompression=yes
OutputDir=sift_inno_setup_output
[Files]
Source: "dist\SIFT\*"; DestDir: "{app}\bin"; Flags: replacesameversion recursesubdirs
Source: "INSTALLER_README.md"; DestName: "README.txt"; DestDir: "{app}"; Flags: isreadme; AfterInstall: ConvertLineEndings
[Icons]
Name: "{group}\SIFT"; Filename: "{app}\bin\SIFT.exe"
Name: "{group}\Bug Tracker"; Filename: "https://github.com/ssec/sift/issues"
Name: "{group}\Wiki"; Filename: "https://github.com/ssec/sift/wiki"
Name: "{group}\Open Workspace Folder"; Filename: "{%WORKSPACE_DB_DIR}"
Name: "{group}\Open Settings Folder"; Filename: "{%DOCUMENT_SETTINGS_DIR}"
Name: "{group}\Uninstall SIFT"; Filename: "{uninstallexe}"
[Code]
const
LF = #10;
CR = #13;
CRLF = CR + LF;
procedure ConvertLineEndings();
var
FilePath : String;
FileContents : String;
begin
FilePath := ExpandConstant(CurrentFileName)
LoadStringFromFile(FilePath, FileContents);
StringChangeEx(FileContents, LF, CRLF, False);
SaveStringToFile(FilePath, FileContents, False);
end;