-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TNDD-setup.iss
74 lines (65 loc) · 2.76 KB
/
TNDD-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
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Paratext TNDD Views"
#define MyAppVersion "0.3"
#define MyAppPublisher "SILAisaPub"
#define MyAppURL "https://github.com/SILAsiaPub/PT-Views/tree/master/TNDD"
#define MPP "{code:GetPTProjectFolder}"
#define MAppData "C:\Users\Public\PT-Views\TNDD"
#define MAppManager "C:\Users\Public\PT-Views"
[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={{D3DD814B-A3C5-4EA1-9E1B-A8C3C1B37DB1}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={#MPP}\Views
DisableDirPage=yes
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=Yes
LicenseFile=LICENSE
InfoAfterFile=TNDD\info.md
OutputDir=Installers
OutputBaseFilename=Paratext-TNDD-Views-installer
Compression=lzma
SolidCompression=yes
;SignTool=$qC:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool.exe$q sign /a /n $qSIL Asia Publishing$q /t http://timestamp.comodoca.com/authenticode /d $qParatext TNDD Views$q $f
[Files]
Source: "TNDD\*.xml"; DestDir: "{app}"
Source: "TNDD\*.xml"; DestDir: "{#MAppData}"
Source: "TNDD\*.xslt"; DestDir: "{app}"
Source: "TNDD\*.xslt"; DestDir: "{#MAppData}"
Source: "TNDD\cms\*.cms"; DestDir: "{#MPP}\cms"
Source: "TNDD\cms\*.cms"; DestDir: "{#MAppData}\cms"
Source: "TNDD\cms\*.py"; DestDir: "{#MPP}\cms"
Source: "TNDD\cms\*.py"; DestDir: "{#MAppData}\cms"
Source: "TNDD\cms\TNDD-info.pdf"; DestDir: "{#MPP}\cms"
Source: "TNDD\cms\TNDD-info.pdf"; DestDir: "{#MAppData}\cms"
Source: "user-views-manager.cmd"; DestDir: "{#MAppManager}"
Source: "TNDD\Uninstall*.cmd"; DestDir: "{#MAppData}"
Source: "TNDD\install*.cmd"; DestDir: "{#MAppData}"
Source: "TNDD\cms\TNDD-errors-documentation.html"; DestDir: "{#MPP}\cms"
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
[Code]
function GetPTProjectFolder(Default: String): String;
{function to get the runtime install folder}
var ResultStr: String;
begin
Result:='{app}';
if RegQueryStringValue(HKLM,'SOFTWARE\WOW6432Node\Paratext\8','Settings_Directory',ResultStr) then
Result:=ResultStr
else if RegQueryStringValue(HKLM,'SOFTWARE\WOW6432Node\Paratext\9','Settings_Directory',ResultStr) then
Result:=ResultStr
else
Result:='C:\My Paratext 8 Projects';
end;
end.