forked from roidelapluie/readesm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installreadesm.iss
77 lines (68 loc) · 2.97 KB
/
installreadesm.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
74
75
76
77
#define EXE "{app}\bin\readesm.exe"
[Setup]
AppCopyright=Andreas Gölzer
AppName=Readesm
AppVersion=2011.12
ChangesAssociations=true
DefaultDirName=readesm
DefaultGroupName=Readesm
SetupIconFile=ressources\icons\readesm.ico
WizardImageFile=ressources\windows-integration\installer.bmp
AppID=readesm_isl
OutputBaseFilename=readesm-setup
LicenseFile=COPYING
DisableDirPage=auto
DisableProgramGroupPage=auto
AppPublisher=Andreas Gölzer
AppPublisherURL=http://andreas.goelzer.de/
[Files]
Source: "build/readesm.exe"; DestDir: "{app}\bin";
Source: "build/*.qm"; DestDir: "{app}\translations";
Source: "ressources\windows-integration\readesm.url"; DestDir: "{app}\doc";
Source: "homepage\help.html"; DestDir: "{app}\doc";
Source: "homepage\style.css"; DestDir: "{app}\doc";
Source: "dlls/*.dll"; DestDir: "{app}\bin";
[Icons]
Name: "{group}\Readesm"; Filename: {#EXE}; WorkingDir: "{app}"
Name: "{group}\Readesm Project Page"; Filename: "{app}\doc\readesm.url"
Name: "{userdesktop}\Readesm"; Filename: {#EXE}; WorkingDir: "{app}"
[Registry]
Root: HKCR; Subkey: ".ddd"; ValueType: string; ValueName: ""; ValueData: "x-esm.File"; Flags: uninsdeletevalue
Root: HKCR; Subkey: ".esm"; ValueType: string; ValueName: ""; ValueData: "x-esm.File"; Flags: uninsdeletevalue
Root: HKCR; Subkey: ".tgd"; ValueType: string; ValueName: ""; ValueData: "x-esm.File"; Flags: uninsdeletevalue
Root: HKCR; Subkey: ".add"; ValueType: string; ValueName: ""; ValueData: "x-esm.File"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "x-esm.File"; ValueType: string; ValueName: ""; ValueData: "Digital Tachograph File"; Flags: uninsdeletekey
Root: HKCR; Subkey: "x-esm.File\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\readesm.exe,0"
Root: HKCR; Subkey: "x-esm.File\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{#EXE}"" ""%1"""
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "de"; MessagesFile: "compiler:languages\German.isl"
Name: "hu"; MessagesFile: "compiler:languages\Hungarian.isl"
Name: "ru"; MessagesFile: "compiler:languages\Russian.isl"
Name: "es"; MessagesFile: "compiler:languages\Spanish.isl"
[CustomMessages]
HomePageLink=readesm.sf.net
[Code]
const Url = 'http://readesm.sourceforge.net/';
procedure UrlLabelClick(Sender: TObject);
var
errorCode : integer;
begin
ShellExec('open',Url,'','',SW_SHOWNORMAL,ewNoWait, errorCode);
end;
procedure InitializeWizard;
var
UrlLabel :TNewStaticText;
CancelBtn :TButton;
begin
CancelBtn := WizardForm.CancelButton;
UrlLabel := TNewStaticText.Create(WizardForm);
UrlLabel.Top := CancelBtn.Top + (CancelBtn.Height div 2) -(UrlLabel.Height div 2);
UrlLabel.Left := WizardForm.ClientWidth - CancelBtn.Left -CancelBtn.Width;
UrlLabel.Caption := ExpandConstant('{cm:HomePageLink}');
UrlLabel.Font.Style := UrlLabel.Font.Style + [fsUnderline] ;
UrlLabel.Cursor := crHand;
UrlLabel.Font.Color := clHighlight;
UrlLabel.OnClick := @UrlLabelClick;
UrlLabel.Parent := WizardForm;
end;