root / Install / InstProg.iss
Historique | Voir | Annoter | Télécharger (3,885 ko)
1 |
[ISPP] |
---|---|
2 |
#define Project "InraPorc" |
3 |
#define Publisher "INRAE" |
4 |
#define URL "https://inraporc.inra.fr/inraporc/" |
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 |
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=true |
30 |
|
31 |
[Languages] |
32 |
Name: en; MessagesFile: compiler:Default.isl |
33 |
Name: fr; MessagesFile: compiler:Languages\French.isl |
34 |
|
35 |
[CustomMessages] |
36 |
en.LangPath=EN |
37 |
fr.LangPath=FR |
38 |
en.InstData=Install a new dataset |
39 |
en.LaunchInstData=Install a dataset right now |
40 |
fr.InstData=Installer un nouveau jeu de donn?es |
41 |
fr.LaunchInstData=Installer un jeu de donn?es d?s maintenant |
42 |
|
43 |
[Tasks] |
44 |
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} |
45 |
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked |
46 |
|
47 |
[Files] |
48 |
Source: ..\{#Project}.exe; DestDir: {app}; Flags: ignoreversion |
49 |
Source: ..\dmath.dll; DestDir: {app}; Flags: promptifolder |
50 |
Source: ..\sqlite3.dll; DestDir: {app}; Flags: promptifolder |
51 |
Source: ..\libeay32.dll; DestDir: {app}; Flags: promptifolder |
52 |
Source: ..\ssleay32.dll; DestDir: {app}; Flags: promptifolder |
53 |
Source: S:\SG-prj-Inraporc\INRA-AFZ\InraAfz.rec; DestDir: {app}; Flags: promptifolder |
54 |
Source: S:\SG-prj-Inraporc\Help\HTML Help\{#Project}_fr.chm; DestDir: {app}; Flags: promptifolder |
55 |
Source: S:\SG-prj-Inraporc\Help\HTML Help\{#Project}_en.chm; DestDir: {app}; Flags: promptifolder |
56 |
Source: InstData.exe; DestDir: {app}; Flags: ignoreversion |
57 |
|
58 |
[INI] |
59 |
Filename: {app}\{#Project}.url; Section: InternetShortcut; Key: URL; String: {#URL} |
60 |
|
61 |
[Icons] |
62 |
Name: {group}\{#Project}; Filename: {app}\{#Project}.exe; WorkingDir: {app} |
63 |
Name: {group}\{cm:ProgramOnTheWeb,{#Project}}; Filename: {app}\{#Project}.url; WorkingDir: {app} |
64 |
Name: {group}\{cm:UninstallProgram,{#Project}}; Filename: {uninstallexe}; WorkingDir: {app} |
65 |
Name: {group}\{cm:InstData}; Filename: {app}\InstData.exe; WorkingDir: {app} |
66 |
Name: {userdesktop}\{#Project}; Filename: {app}\{#Project}.exe; WorkingDir: {app}; Tasks: desktopicon |
67 |
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\{#Project}; Filename: {app}\{#Project}.exe; WorkingDir: {app}; Tasks: quicklaunchicon |
68 |
|
69 |
[Run] |
70 |
Filename: {app}\InstData.exe; Description: {cm:LaunchInstData}; Flags: nowait postinstall skipifsilent |
71 |
|
72 |
[Registry] |
73 |
Root: HKU; Subkey: Software\Borland\Locale; ValueName: {app}\{#Project}.exe; Flags: deletevalue |
74 |
|
75 |
[InstallDelete] |
76 |
Type: files; Name: {app}\{#Project}\{#Project}.DEU |
77 |
Type: files; Name: {app}\{#Project}\{#Project}.ENG |
78 |
Type: files; Name: {app}\{#Project}\{#Project}.ENU |
79 |
Type: files; Name: {app}\{#Project}\{#Project}.ESP |
80 |
Type: files; Name: {app}\{#Project}\{#Project}.ITA |
81 |
Type: files; Name: {app}\{#Project}\{#Project}.NLD |
82 |
Type: files; Name: {app}\{#Project}\{#Project}.PLK |
83 |
Type: files; Name: {app}\{#Project}\{#Project}.PTB |
84 |
Type: files; Name: {app}\{#Project}\{#Project}_ENG.chm |
85 |
Type: files; Name: {app}\{#Project}\{#Project}_ENU.chm |
86 |
Type: files; Name: {app}\{#Project}\{#Project}_FRA.chm |
87 |
|
88 |
[UninstallDelete] |
89 |
Type: files; Name: {app}\{#Project}.url |
90 |
|
91 |
[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; |