root / Install / EvaPig2020.iss @ 1
Historique | Voir | Annoter | Télécharger (3,157 ko)
1 |
[ISPP] |
---|---|
2 |
#define Project "EvaPig2020" |
3 |
#define Publisher "INRAE - Ajinomoto Animal Nutrition Europe - AFZ" |
4 |
#define URL "http://www.evapig.com" |
5 |
; Version |
6 |
#define Major |
7 |
#define Minor |
8 |
#define Release |
9 |
#define Build |
10 |
#expr ParseVersion(SourcePath + '\..\' + Project + '.exe',Major,Minor,Release,Build) |
11 |
|
12 |
[Setup] |
13 |
; Compiller |
14 |
PrivilegesRequired=none |
15 |
OutputBaseFilename={#Project}Setup_{#Major}.{#Minor}.{#Release}.{#Build} |
16 |
OutputDir=. |
17 |
VersionInfoCompany={#Publisher} |
18 |
VersionInfoDescription={#Project} Setup |
19 |
VersionInfoVersion={#Major}.{#Minor}.{#Release}.{#Build} |
20 |
; Installer |
21 |
AppMutex={#Project} |
22 |
AppName={#Project} |
23 |
AppVerName={cm:NameAndVersion,{#Project},{#Major}.{#Minor}.{#Release}.{#Build}} |
24 |
AppVersion={#Major}.{#Minor}.{#Release}.{#Build} |
25 |
AppPublisher={#Publisher} |
26 |
AppPublisherURL={#URL} |
27 |
DefaultDirName={code:DefDirRoot}\{#Project} |
28 |
DefaultGroupName={#Project} |
29 |
AllowNoIcons=yes |
30 |
|
31 |
[Types] |
32 |
|
33 |
[Components] |
34 |
|
35 |
[Tasks] |
36 |
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} |
37 |
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked |
38 |
|
39 |
[Dirs] |
40 |
|
41 |
[Files] |
42 |
Source: ..\{#Project}.exe; DestDir: {app}; Flags: ignoreversion |
43 |
;Source: C:\WINDOWS\SYSTEM32\midas.dll; DestDir: {app}; Flags: ignoreversion |
44 |
Source: ..\sqlite3.dll; DestDir: {app}; Flags: ignoreversion |
45 |
Source: ..\{#Project}.dat; DestDir: {app}; Flags: promptifolder |
46 |
Source: ..\help\{#Project}.chm; DestDir: {app}; Flags: promptifolder |
47 |
Source: ..\Tutorial.pps; DestDir: {app}; Flags: promptifolder |
48 |
|
49 |
[Icons] |
50 |
Name: {group}\{#Project}; Filename: {app}\{#Project}.exe |
51 |
Name: {group}\{cm:Database}; Filename: {userdocs}\{#Project} |
52 |
Name: {group}\{cm:Tutorial}; Filename: {app}\Tutorial.pps |
53 |
Name: {group}\{cm:ProgramOnTheWeb,{#Project}}; Filename: {app}\{#Project}.url |
54 |
Name: {group}\{cm:UninstallProgram,{#Project}}; Filename: {uninstallexe} |
55 |
Name: {userdesktop}\{#Project}; Filename: {app}\{#Project}.exe; Tasks: desktopicon |
56 |
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#Project}; Filename: {app}\{#Project}.exe; Tasks: quicklaunchicon |
57 |
|
58 |
[INI] |
59 |
Filename: {app}\{#Project}.url; Section: InternetShortcut; Key: URL; String: {#URL} |
60 |
|
61 |
[InstallDelete] |
62 |
;Type: files; Name: {userappdata}\{#Project}\User.sqb |
63 |
|
64 |
[Languages] |
65 |
Name: en; MessagesFile: compiler:Default.isl |
66 |
Name: fr; MessagesFile: compiler:Languages\French.isl |
67 |
|
68 |
[Messages] |
69 |
|
70 |
[CustomMessages] |
71 |
en.Database=Database |
72 |
fr.Database=Base de donn?es |
73 |
en.Tutorial=Tutorial |
74 |
fr.Tutorial=Didacticiel |
75 |
en.Run=Run the tutorial now |
76 |
fr.Run=Lancer le didacticiel maintenant |
77 |
|
78 |
[LangOptions] |
79 |
|
80 |
[Registry] |
81 |
|
82 |
[Run] |
83 |
;Filename: {app}\{#Project}.exe; Description: {cm:LaunchProgram,{#Project}}; Flags: nowait postinstall skipifsilent |
84 |
Filename: {app}\Tutorial.pps; Description: {cm:Run}; Flags: postinstall skipifsilent shellexec |
85 |
|
86 |
[UninstallDelete] |
87 |
Type: files; Name: {app}\{#Project}.url |
88 |
|
89 |
[Code] |
90 |
function IsRegularUser(): Boolean; |
91 |
begin |
92 |
Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn); |
93 |
end; |
94 |
|
95 |
function DefDirRoot(Param: String): String; |
96 |
begin |
97 |
if IsRegularUser then |
98 |
Result := ExpandConstant('{localappdata}') |
99 |
else |
100 |
Result := ExpandConstant('{pf}') |
101 |
end; |