Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit e1edc73

Browse files
committed
option to defer installation (copy instead of run offline)
1 parent 92772eb commit e1edc73

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Elixir.iss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ DefaultGroupName=Elixir
3939
OutputBaseFilename=elixir-v{#ElixirVersion}-setup
4040
AllowNoIcons=yes
4141

42-
; Web installer: the user sees the welcome page as part of the web installer
4342
#ifdef SkipWelcome
4443
DisableWelcomePage=yes
44+
#else
45+
DisableWelcomePage=no
4546
#endif
4647

4748
; Web installer: no need to compress, since the installer is built directly on the machine

ElixirWeb.iss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,20 @@ Filename: "{tmp}\{code:GetScriptString|ErlangExe64}"; Flags: hidewizard; StatusM
7272
; Extract the downloaded Precompiled.zip archive
7373
Filename: "{tmp}\7za.exe"; Parameters: "x -oelixir Precompiled.zip"; WorkingDir: "{tmp}"; StatusMsg: "Extracting Precompiled.zip archive..."
7474
; Compile the offline installer
75-
Filename: "{tmp}\ISCC.exe"; Parameters: "/dSkipWelcome /dNoCompression Elixir.iss"; WorkingDir: "{tmp}"; StatusMsg: "Compiling Elixir installer..."
75+
Filename: "{tmp}\ISCC.exe"; Parameters: "/dSkipWelcome /dNoCompression Elixir.iss"; WorkingDir: "{tmp}"; StatusMsg: "Compiling Elixir installer..."; Tasks: not gen_offline
76+
; Use standard options for deferred install
77+
Filename: "{tmp}\ISCC.exe"; Parameters: "Elixir.iss"; WorkingDir: "{tmp}"; StatusMsg: "Compiling Elixir installer..."; Tasks: gen_offline
7678
; Run the offline installer
77-
Filename: "{tmp}\Output\elixir-v{code:GetScriptString|ElixirVersion}-setup.exe"; Flags: nowait postinstall; StatusMsg: "Starting Elixir installer..."
79+
Filename: "{tmp}\Output\elixir-v{code:GetScriptString|ElixirVersion}-setup.exe"; Flags: nowait postinstall; StatusMsg: "Starting Elixir installer..."; Tasks: not gen_offline
80+
; Or copy offline installer to same folder as web installer
81+
Filename: "Robocopy.exe"; Parameters: "{tmp}\Output {src} elixir-v{code:GetScriptString|ElixirVersion}-setup.exe /IS"; Tasks: gen_offline
7882

7983
[Tasks]
8084
Name: "unins_previous"; Description: "Uninstall previous version at {code:GetScriptString|ElixirPreviousPath} (Recommended)"; Check: CheckPreviousVersionExists
8185
Name: "erlang"; Description: "Install Erlang"; Check: CheckToInstallErlang
8286
Name: "erlang\32"; Description: "{code:GetScriptString|ErlangName32}"; Flags: exclusive
8387
Name: "erlang\64"; Description: "{code:GetScriptString|ErlangName64}"; Flags: exclusive; Check: IsWin64
88+
Name: "gen_offline"; Description: "Defer installation (advanced)"; Flags: unchecked
8489

8590
[Code]
8691
#include "src\Util.iss"

0 commit comments

Comments
 (0)