root / Install / EvaPig2020.iss @ 11
Historique | Voir | Annoter | Télécharger (3,817 ko)
1 | 1 | avalancogn | [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 | 6 | avalancogn | PrivilegesRequiredOverridesAllowed=dialog |
16 | 1 | avalancogn | OutputBaseFilename={#Project}Setup_{#Major}.{#Minor}.{#Release}.{#Build} |
17 | OutputDir=. |
||
18 | VersionInfoCompany={#Publisher} |
||
19 | VersionInfoDescription={#Project} Setup |
||
20 | VersionInfoVersion={#Major}.{#Minor}.{#Release}.{#Build} |
||
21 | ; Installer |
||
22 | AppMutex={#Project} |
||
23 | AppName={#Project} |
||
24 | AppVerName={cm:NameAndVersion,{#Project},{#Major}.{#Minor}.{#Release}.{#Build}} |
||
25 | AppVersion={#Major}.{#Minor}.{#Release}.{#Build} |
||
26 | AppPublisher={#Publisher} |
||
27 | AppPublisherURL={#URL} |
||
28 | 6 | avalancogn | ;DefaultDirName={code:DefDirRoot}\{#Project} |
29 | DefaultDirName={autopf}\{#Project} |
||
30 | 1 | avalancogn | DefaultGroupName={#Project} |
31 | AllowNoIcons=yes |
||
32 | |||
33 | [Types] |
||
34 | |||
35 | [Components] |
||
36 | |||
37 | [Tasks] |
||
38 | Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} |
||
39 | Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked |
||
40 | |||
41 | [Dirs] |
||
42 | |||
43 | [Files] |
||
44 | Source: ..\{#Project}.exe; DestDir: {app}; Flags: ignoreversion |
||
45 | ;Source: C:\WINDOWS\SYSTEM32\midas.dll; DestDir: {app}; Flags: ignoreversion |
||
46 | Source: ..\sqlite3.dll; DestDir: {app}; Flags: ignoreversion |
||
47 | Source: ..\{#Project}.dat; DestDir: {app}; Flags: promptifolder |
||
48 | Source: ..\help\{#Project}.chm; DestDir: {app}; Flags: promptifolder |
||
49 | 7 | avalancogn | Source: ..\EvaPigTutorial_2020.ppsx; DestDir: {app}; Flags: promptifolder |
50 | 9 | avalancogn | Source: ..\EvaPigManual_2020.pdf; DestDir: {app}; Flags: promptifolder |
51 | Source: ..\EvaPigManualEquations_2020.pdf; DestDir: {app}; Flags: promptifolder |
||
52 | 1 | avalancogn | |
53 | [Icons] |
||
54 | Name: {group}\{#Project}; Filename: {app}\{#Project}.exe |
||
55 | Name: {group}\{cm:Database}; Filename: {userdocs}\{#Project} |
||
56 | 7 | avalancogn | Name: {group}\{cm:Tutorial}; Filename: {app}\EvaPigTutorial_2020.ppsx |
57 | 9 | avalancogn | Name: {group}\{cm:ReferenceManual}; Filename: {app}\EvaPigManual_2020.pdf |
58 | Name: {group}\{cm:EquationsAndCoefficients}; Filename: {app}\EvaPigManualEquations_2020.pdf |
||
59 | Name: {group}\{cm:Website,{#Project}}; Filename: {app}\{#Project}.url |
||
60 | 1 | avalancogn | Name: {group}\{cm:UninstallProgram,{#Project}}; Filename: {uninstallexe} |
61 | Name: {userdesktop}\{#Project}; Filename: {app}\{#Project}.exe; Tasks: desktopicon |
||
62 | Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#Project}; Filename: {app}\{#Project}.exe; Tasks: quicklaunchicon |
||
63 | |||
64 | [INI] |
||
65 | Filename: {app}\{#Project}.url; Section: InternetShortcut; Key: URL; String: {#URL} |
||
66 | |||
67 | [InstallDelete] |
||
68 | ;Type: files; Name: {userappdata}\{#Project}\User.sqb |
||
69 | |||
70 | [Languages] |
||
71 | Name: en; MessagesFile: compiler:Default.isl |
||
72 | Name: fr; MessagesFile: compiler:Languages\French.isl |
||
73 | |||
74 | [Messages] |
||
75 | |||
76 | [CustomMessages] |
||
77 | en.Database=Database |
||
78 | fr.Database=Base de donn?es |
||
79 | en.Tutorial=Tutorial |
||
80 | fr.Tutorial=Didacticiel |
||
81 | 9 | avalancogn | en.ReferenceManual=Reference manual |
82 | fr.ReferenceManual=Manuel de r?f?rence |
||
83 | en.EquationsAndCoefficients=Equations and coefficients |
||
84 | fr.EquationsAndCoefficients=Equations et coefficients |
||
85 | en.Website=Website |
||
86 | fr.Website=Site Internet |
||
87 | 1 | avalancogn | en.Run=Run the tutorial now |
88 | fr.Run=Lancer le didacticiel maintenant |
||
89 | |||
90 | [LangOptions] |
||
91 | |||
92 | [Registry] |
||
93 | |||
94 | [Run] |
||
95 | ;Filename: {app}\{#Project}.exe; Description: {cm:LaunchProgram,{#Project}}; Flags: nowait postinstall skipifsilent |
||
96 | 7 | avalancogn | Filename: {app}\EvaPigTutorial_2020.ppsx; Description: {cm:Run}; Flags: postinstall skipifsilent shellexec |
97 | 1 | avalancogn | |
98 | [UninstallDelete] |
||
99 | Type: files; Name: {app}\{#Project}.url |
||
100 | |||
101 | 6 | avalancogn | ;[Code] |
102 | ;function IsRegularUser(): Boolean; |
||
103 | ;begin |
||
104 | ; Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn); |
||
105 | ;end; |
||
106 | ; |
||
107 | ;function DefDirRoot(Param: String): String; |
||
108 | ;begin |
||
109 | ; if IsRegularUser then |
||
110 | ; Result := ExpandConstant('{localappdata}') |
||
111 | ; else |
||
112 | ; Result := ExpandConstant('{pf}') |
||
113 | ;end; |