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

Commit 200d9bd

Browse files
committed
Option to start installer as last step in script
1 parent f61776e commit 200d9bd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/make-installer.ps1

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ $cd = (Get-Item -Path ".\" -Verbose).FullName
2323
$isccDefine = ""
2424
$isccDir = (Get-Item -Path ".\" -Verbose).FullName
2525
$elixirVersion = ""
26+
$startInstaller = false
2627

2728
#### Script
2829
Info("Current directory:")
@@ -35,6 +36,7 @@ foreach ($arg in $args)
3536
if ($arg = "--innoelixirweb")
3637
{
3738
$isccDefine = "/dSkipPages /dNoCompression"
39+
$startInstaller = true
3840
}
3941
}
4042
Info("Finished reading arguments")
@@ -96,10 +98,16 @@ Info("Running $iscc $isccDefine Elixir.iss")
9698
& $iscc $isccDefine Elixir.iss
9799
if ($LastExitCode -eq 0)
98100
{
99-
Info("Installer compiled successfully to .\Output")
101+
Info("Installer compiled successfully to .\Output\elixir-v$elixirVersion-setup.exe")
100102
}
101103
else
102104
{
103105
Err("ISCC.exe failed with exit code $LastExitCode")
104106
ExitMsg
105-
}
107+
}
108+
109+
if ($startInstaller)
110+
{
111+
Info("Starting installer...")
112+
start ".\Output\elixir-v$elixirVersion-setup.exe"
113+
}

0 commit comments

Comments
 (0)