-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaborun.iss
145 lines (123 loc) · 5 KB
/
daborun.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Dabo Runtime Engine
AppVerName=DaboRun 0.9.3 - rev 20101226
AppPublisher=Ed Leafe
AppPublisherURL=http://dabodev.com
AppSupportURL=http://dabodev.com
AppUpdatesURL=http://dabodev.com/download
DefaultDirName={pf}\Dabo Runtime
DefaultGroupName=Dabo Runtime Engine
AllowNoIcons=yes
Compression=lzma
SolidCompression=yes
ChangesAssociations=yes
;OutputBaseFilename=DaboRuntimeSetup
OutputBaseFilename=DaboRuntimeSetupConsole
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
[Dirs]
Name: {app}\Common
[UninstallDelete]
Name: {app}\Common; Type: filesandordirs
Name: {app}\dabo\*; Type: filesandordirs
Name: {app}\demo\*; Type: filesandordirs
Name: {app}\ide\*; Type: filesandordirs
[Files]
Source: C:\projects\daborun\dist\daborun.exe; DestDir: {app}; Flags: ignoreversion
Source: C:\projects\daborun\dist\*; Excludes: Output\*, *.iss; DestDir: {app}; Flags: ignoreversion recursesubdirs
Source: C:\projects\cleandabo\dabo\*; DestDir: {app}\dabo; Flags: ignoreversion recursesubdirs
Source: C:\projects\cleandabo\demo\*; DestDir: {app}\demo; Flags: ignoreversion recursesubdirs; AfterInstall: LinkDemo
Source: C:\projects\cleandabo\ide\*; DestDir: {app}\ide; Flags: ignoreversion recursesubdirs; AfterInstall: LinkIDE
Source: C:\Python25\msvcr71.dll; DestDir: {app}; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: README.txt; DestDir: {app}; Flags: isreadme
[Icons]
Name: {group}\Dabo Runtime Engine; Filename: {app}\daborun.exe; IconFilename: {app}\dabo\icons\daboIcon.ico; WorkingDir: "{app}"
Name: {group}\{cm:UninstallProgram,Dabo Runtime Engine}; Filename: {uninstallexe}
Name: {userdesktop}\Dabo Runtime Engine; Filename: {app}\daborun.exe; IconFilename: {app}\dabo\icons\daboIcon.ico; WorkingDir: "{app}"; Tasks: desktopicon
Name: {userdesktop}\Dabo Shortcuts; Filename: {app}\Common; WorkingDir: "{app}"; Tasks: desktopicon
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Dabo Runtime Engine; Filename: {app}\daborun.exe; IconFilename: {app}\dabo\icons\daboIcon.ico; WorkingDir: "{app}"; Tasks: quicklaunchicon
;[Registry]
;Root: HKLM; Subkey: "Software\Microsoft\Windows\CurrentVersion\App Paths"; ValueType: string; ValueName: ""; ValueData: "{app}\daborun.exe"; Flags: uninsdeletekey
;Root: HKCR; Subkey: "daboruntime"; ValueType: string; ValueName: ""; ValueData: "Dabo Runtime Engine"; Flags: uninsdeletekey
;Root: HKCR; Subkey: "daboruntime\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\daborun.exe,0"
;Root: HKCR; Subkey: "daboruntime\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\daborun.exe"" ""%1"""
[Code]
procedure LinkDemo();
begin
CreateShellLink(
ExpandConstant('{app}\Common\DaboDemo.lnk'),
'Shortcut to the DaboDemo application',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\demo\DaboDemo.py"'),
ExpandConstant('{app}\demo'),
'',
0,
SW_SHOWNORMAL) ;
end ;
procedure LinkIDE();
begin
CreateShellLink(
ExpandConstant('{app}\Common\App Wizard.lnk'),
'Shortcut to the Dabo Application Wizard',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\wizards\AppWizard\AppWizard.py"'),
ExpandConstant('{app}\ide\wizards\AppWizard'),
'',
0,
SW_SHOWNORMAL) ;
CreateShellLink(
ExpandConstant('{app}\Common\Class Designer.lnk'),
'Shortcut to the Dabo Class Designer',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\ClassDesigner.py"'),
ExpandConstant('{app}\ide'),
'',
0,
SW_SHOWNORMAL) ;
CreateShellLink(
ExpandConstant('{app}\Common\Report Designer.lnk'),
'Shortcut to the Dabo Report Designer',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\ReportDesigner.py"'),
ExpandConstant('{app}\ide'),
'',
0,
SW_SHOWNORMAL) ;
CreateShellLink(
ExpandConstant('{app}\Common\Text Editor.lnk'),
'Shortcut to the Dabo Editor',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\Editor.py"'),
ExpandConstant('{app}\ide'),
'',
0,
SW_SHOWNORMAL) ;
CreateShellLink(
ExpandConstant('{app}\Common\Connection Editor.lnk'),
'Shortcut to the Dabo Connection Editor',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\CxnEditor.py"'),
ExpandConstant('{app}\ide'),
'',
0,
SW_SHOWNORMAL) ;
CreateShellLink(
ExpandConstant('{app}\Common\Preference Editor.lnk'),
'Shortcut to the Preference Editor program',
ExpandConstant('{app}\daborun.exe'),
ExpandConstant('"{app}\ide\PrefEditor.py"'),
ExpandConstant('{app}\ide'),
'',
0,
SW_SHOWNORMAL) ;
end ;
function MessageBox(hWnd: Integer; lpText, lpCaption: String; uType: Cardinal):
Integer; external '[email protected] stdcall';
begin
if MessageBox(-1, '', '', -1) = 0 then
MsgBox('what the hell', mbError, mb_Ok);
end .