root / Install / EvaPig2020.iss @ 6
Historique | Voir | Annoter | Télécharger (3,248 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 | Source: ..\Tutorial.pps; DestDir: {app}; Flags: promptifolder |
||
50 | |||
51 | [Icons] |
||
52 | Name: {group}\{#Project}; Filename: {app}\{#Project}.exe |
||
53 | Name: {group}\{cm:Database}; Filename: {userdocs}\{#Project} |
||
54 | Name: {group}\{cm:Tutorial}; Filename: {app}\Tutorial.pps |
||
55 | Name: {group}\{cm:ProgramOnTheWeb,{#Project}}; Filename: {app}\{#Project}.url |
||
56 | Name: {group}\{cm:UninstallProgram,{#Project}}; Filename: {uninstallexe} |
||
57 | Name: {userdesktop}\{#Project}; Filename: {app}\{#Project}.exe; Tasks: desktopicon |
||
58 | Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#Project}; Filename: {app}\{#Project}.exe; Tasks: quicklaunchicon |
||
59 | |||
60 | [INI] |
||
61 | Filename: {app}\{#Project}.url; Section: InternetShortcut; Key: URL; String: {#URL} |
||
62 | |||
63 | [InstallDelete] |
||
64 | ;Type: files; Name: {userappdata}\{#Project}\User.sqb |
||
65 | |||
66 | [Languages] |
||
67 | Name: en; MessagesFile: compiler:Default.isl |
||
68 | Name: fr; MessagesFile: compiler:Languages\French.isl |
||
69 | |||
70 | [Messages] |
||
71 | |||
72 | [CustomMessages] |
||
73 | en.Database=Database |
||
74 | fr.Database=Base de donn?es |
||
75 | en.Tutorial=Tutorial |
||
76 | fr.Tutorial=Didacticiel |
||
77 | en.Run=Run the tutorial now |
||
78 | fr.Run=Lancer le didacticiel maintenant |
||
79 | |||
80 | [LangOptions] |
||
81 | |||
82 | [Registry] |
||
83 | |||
84 | [Run] |
||
85 | ;Filename: {app}\{#Project}.exe; Description: {cm:LaunchProgram,{#Project}}; Flags: nowait postinstall skipifsilent |
||
86 | Filename: {app}\Tutorial.pps; Description: {cm:Run}; Flags: postinstall skipifsilent shellexec |
||
87 | |||
88 | [UninstallDelete] |
||
89 | Type: files; Name: {app}\{#Project}.url |
||
90 | |||
91 | 6 | avalancogn | ;[Code] |
92 | ;function IsRegularUser(): Boolean; |
||
93 | ;begin |
||
94 | ; Result := not (IsAdminLoggedOn or IsPowerUserLoggedOn); |
||
95 | ;end; |
||
96 | ; |
||
97 | ;function DefDirRoot(Param: String): String; |
||
98 | ;begin |
||
99 | ; if IsRegularUser then |
||
100 | ; Result := ExpandConstant('{localappdata}') |
||
101 | ; else |
||
102 | ; Result := ExpandConstant('{pf}') |
||
103 | ;end; |