-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallScript.iss
95 lines (74 loc) · 3.66 KB
/
InstallScript.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
;------------------------------------------------------------------------------
; Îïðåäåëÿåì íåêîòîðûå êîíñòàíòû
;------------------------------------------------------------------------------
#define Dir "..\HTTP-Server\HTTP-Server\bin\Release"
#define Path "..\HTTP-Server\HTTP-Server\bin\Release\HttpServer.exe"
#define Name "HttpServer"
#define ExeName Name + ".exe"
#define AppVersion GetFileVersion(Path)
#define URL "https://github.com/DarkSideMoon"
#define Publisher "Pavel Romashchenko"
#define AppVersion "1.0.1.0"
;------------------------------------------------------------------------------
; Ïàðàìåòðû óñòàíîâêè
;------------------------------------------------------------------------------
[Setup]
; Óíèêàëüíûé èäåíòèôèêàòîð ïðèëîæåíèÿ,
;ñãåíåðèðîâàííûé ÷åðåç Tools -> Generate GUID
AppId={{F829E35A-E5AB-4ACB-8A32-3DA72881CBBF}
; Ïðî÷àÿ èíôîðìàöèÿ, îòîáðàæàåìàÿ ïðè óñòàíîâêå
AppName={#Name}
AppVersion={#AppVersion}
AppPublisher={#Publisher}
AppPublisherURL={#URL}
AppSupportURL={#URL}
AppUpdatesURL={#URL}
; Ïóòü óñòàíîâêè ïî-óìîë÷àíèþ
DefaultDirName={pf}\{#Name}
; Èìÿ ãðóïïû â ìåíþ "Ïóñê"
DefaultGroupName={#Name}
; Êàòàëîã, êóäà áóäåò çàïèñàí ñîáðàííûé setup è èìÿ èñïîëíÿåìîãî ôàéëà
OutputDir=..\http-server\HTTP-Server\bin\
OutputBaseFileName=Installation
; Ôàéë èêîíêè
SetupIconFile=External\Install\web.ico
; Ïàðàìåòðû ñæàòèÿ
Compression=lzma
SolidCompression=yes
;------------------------------------------------------------------------------
; Óñòàíàâëèâàåì ÿçûêè äëÿ ïðîöåññà óñòàíîâêè
;------------------------------------------------------------------------------
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"; LicenseFile: "External\Install\License_ENG.txt"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"; LicenseFile: "External\Install\License_RUS.txt"
;------------------------------------------------------------------------------
; Îïöèîíàëüíî - íåêîòîðûå çàäà÷è, êîòîðûå íàäî âûïîëíèòü ïðè óñòàíîâêå
;------------------------------------------------------------------------------
[Tasks]
; Ñîçäàíèå èêîíêè íà ðàáî÷åì ñòîëå
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
;------------------------------------------------------------------------------
; Ôàéëû, êîòîðûå íàäî âêëþ÷èòü â ïàêåò óñòàíîâùèêà
;------------------------------------------------------------------------------
[Files]
; Èñïîëíÿåìûé ôàéë
Source: "{#Path}"; DestDir: "{app}"; Flags: ignoreversion
; Ïðèëàãàþùèåñÿ ðåñóðñû
Source: "{#Dir}*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
;------------------------------------------------------------------------------
; Óêàçûâàåì óñòàíîâùèêó, ãäå îí äîëæåí âçÿòü èêîíêè
;------------------------------------------------------------------------------
[Icons]
Name: "{group}\{#Name}"; Filename: "{app}\{#ExeName}"
Name: "{commondesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; Tasks: desktopicon
;------------------------------------------------------------------------------
; Ñåêöèÿ êîäà âêëþ÷åííàÿ èç îòäåëüíîãî ôàéëà
;------------------------------------------------------------------------------
[Code]
#include "External\Install\dotnet.pas"
#include "External\Install\delversion.pas"
[Run]
;------------------------------------------------------------------------------
; Ñåêöèÿ çàïóñêà ïîñëå èíñòàëëÿöèè
;------------------------------------------------------------------------------
Filename: {tmp}\dotNetFx45_Full_setup.exe; Parameters: "/q:a /c:""install /l /q"""; Check: not IsRequiredDotNetDetected; StatusMsg: Microsoft Framework 4.0 is installed. Please wait.