-
Notifications
You must be signed in to change notification settings - Fork 0
/
CollectiveAccessMAMP_setup.iss
41 lines (37 loc) · 1.32 KB
/
CollectiveAccessMAMP_setup.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
#include "C:\Program Files (x86)\Inno Download Plugin\idp.iss"
; -- CodeDownloadFiles.iss --
;
; This script shows how the CreateDownloadPage support function can be used to
; download temporary files while showing the download progress to the user.
[Setup]
AppName=CollectiveAccessMAMP
AppVersion=0.1
WizardStyle=modern
OutputDir=c:\MAMP\htdocs\
DefaultDirName=CollectiveAccessMAMP
OutputBaseFilename=CollectiveAccessMAMP_setup
[Files]
; Place any regular files here
Source: "setup.php"; DestDir: "{app}";
Source: "CollectiveAccessMAMP_setup.bat"; DestDir: "{app}";
Source: "7za.exe"; DestDir: "{app}";
; These files will be downloaded
Source: "{tmp}\providence.zip"; DestDir: "{app}"; Flags: external
[Run]
Filename: "{app}\CollectiveAccessMAMP_setup.bat"; Parameters: "install";
;Flags: runhidden
Filename: "http://localhost/providence/"; \
Flags: shellexec postinstall runmaximized; \
Description: "Show Overview"
[Code]
procedure InitializeWizard;
begin
{ Si MAMP n'est pas installé, abort }
if (not FileExists('C:\MAMP\bin\php\php7.4.16\php.exe')) then
begin
Abort;
end;
idpAddFile('https://github.com/collectiveaccess/providence/archive/refs/tags/1.7.17.zip', ExpandConstant('{tmp}\providence.zip'));
{ Download after "Ready" wizard page }
idpDownloadAfter(wpReady);
end;