forked from michaelknigge/spf-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spfse-60-1272.iss
73 lines (59 loc) · 4 KB
/
spfse-60-1272.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
#define AppName "SPF SourceEdit 6.0"
#define AppBuildNumber "1272"
#define AdminSubkey "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
#define UserSubkey "Environment"
[Setup]
AppName={#AppName}
AppVerName={#AppName} Build {#AppBuildNumber}.{#AppveyorBuildNumber}
AppPublisher=Command Technology Corporation
AppPublisherURL=https://github.com/michaelknigge/spf-editor
AppCopyright=Copyright (C) Command Technology Corporation
DefaultGroupName={#AppName}
DefaultDirName={code:GetDefaultDirName}
OutputDir=.
ChangesEnvironment=yes
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog commandline
OutputBaseFilename=SPFSE-6.0.{#AppBuildNumber}.{#AppveyorBuildNumber}-SETUP
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
[Dirs]
Name: "{autoappdata}\{#AppName}"; Permissions: everyone-modify;
Name: "{app}\macros"; Permissions: everyone-modify;
Name: "{app}\dialogs"; Permissions: everyone-modify;
[Tasks]
Name: "desktopicon"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; Description: "{cm:CreateDesktopIcon}"
Name: "fonts"; GroupDescription: "Additional fonts"; Flags: unchecked; Description: "Install TrueType font ""Source Code Pro"""
[Files]
Source: "orig-bin\*"; DestDir: "{app}\bin"; Flags: replacesameversion restartreplace
Source: "orig-dialogs\*"; DestDir: "{app}\dialogs"; Flags: replacesameversion restartreplace
Source: "orig-help\*"; DestDir: "{app}\help"; Flags: replacesameversion restartreplace
Source: "orig-macros\*"; DestDir: "{app}\macros"; Flags: replacesameversion restartreplace
Source: "orig-profiles\*"; DestDir: "{app}\profiles"; Flags: replacesameversion restartreplace
Source: "icons-v6\*.ico"; DestDir: "{app}\Bin"; Flags: replacesameversion restartreplace
Source: "dialogs-v6\*"; DestDir: "{app}\dialogs"; Flags: replacesameversion restartreplace
Source: "macros\*"; DestDir: "{app}\macros"; Flags: replacesameversion restartreplace
; The file "spfse.prf" is excluded. The default settings for SPF/SE 6.0 are stored
; in file "default.prf". Starting with Build 1283 the location of the file changed
; as well as the name (changed from "default.prf" to "spfse.prf").
Source: "profiles-v6\*"; DestDir: "{app}\profiles"; Flags: replacesameversion restartreplace; Excludes: "spfse.prf";
Source: "profiles-v6\*"; DestDir: "{app}\defaults"; Flags: replacesameversion restartreplace; Excludes: "spfse.prf";
#include "fonts.iss"
[Registry]
Root: HKLM; Check: IsAdminInstallMode; Subkey: "{#AdminSubkey}"; ValueType: string; ValueName: "SPFGE60"; ValueData: "{app}"; Flags: uninsdeletevalue
Root: HKLM; Check: IsAdminInstallMode; Subkey: "{#AdminSubkey}"; ValueType: string; ValueName: "SPFGE60RW"; ValueData: "{autoappdata}\{#AppName}"; Flags: uninsdeletevalue
Root: HKCU; Check: not IsAdminInstallMode; Subkey: "{#UserSubkey}"; ValueType: string; ValueName: "SPFGE60"; ValueData: "{app}"; Flags: uninsdeletevalue
Root: HKCU; Check: not IsAdminInstallMode; Subkey: "{#UserSubkey}"; ValueType: string; ValueName: "SPFGE60RW"; ValueData: "{autoappdata}\{#AppName}"; Flags: uninsdeletevalue
[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\bin\GraphicEdition60.exe"; IconFilename: "{app}\Bin\GraphicEdition60.ico"
Name: "{group}\Uninstall"; Filename: "{uninstallexe}"
Check: IsAdminInstallMode; Name: "{commondesktop}\SPFSE 6.0"; Filename: "{app}\bin\GraphicEdition60.exe"; IconFilename: "{app}\Bin\GraphicEdition60.ico"; Tasks: desktopicon
Check: not IsAdminInstallMode; Name: "{userdesktop}\SPFSE 6.0"; Filename: "{app}\bin\GraphicEdition60.exe"; IconFilename: "{app}\Bin\GraphicEdition60.ico"; Tasks: desktopicon
[Code]
function GetDefaultDirName(Param: String): String;
begin
if IsAdminInstallMode then
Result := ExpandConstant('{pf}') + '\{#AppName}'
else
Result := GetEnv('LOCALAPPDATA') + '\{#AppName}'
end;