Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 01406d9

Browse files
committed
[[ Merge ]] Port develop changes to scriptified installer
1 parent a07661a commit 01406d9

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

builder/installer/installeruistackbehavior.livecodescript

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ command runFaceless
453453
local tOptions
454454
parseOptions tOptions
455455
if the result is not empty then
456-
write "Usage: <exe> -noui [-location <path>] [-allusers] [-desktopshortcut] [-startmenu]" & return to stderr
457-
exit runFaceless
456+
write "Usage: <exe> -ui [-location <path>] [-allusers] [-desktopshortcut] [-startmenu]" & return to stderr
457+
quit 1
458458
end if
459459

460460
-- Compute the target location based on install type, if non specified
@@ -478,7 +478,9 @@ end runFaceless
478478

479479
private command parseOptions @rOptions
480480
local tIndex
481-
put 3 into tIndex
481+
-- Skip $0 (executable path) and $1 ('install')
482+
-- '-ui' is not included in the cmd line arg vars
483+
put 2 into tIndex
482484
repeat forever
483485
if tIndex >= $# then
484486
exit repeat

builder/installer/stackbehavior.livecodescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ on startup
2626

2727
switch tAction
2828
case "install"
29-
if $2 is "noui" then
29+
if the environment is "installer command line" then
3030
runFacelessInstall
3131
else
3232
hide me
3333
send "runInstallerUI" to me in 0 millisecs
3434
end if
3535
break
3636
case "uninstall"
37-
if $2 is "noui" then
37+
if the environment is "installer command line" then
3838
runFacelessUninstall
3939
else
4040
hide me
@@ -117,7 +117,7 @@ command setTitleField pField, pTitle, pSubTitle
117117
end setTitleField
118118

119119
on errorDialog pError
120-
if $2 is "noui" then
120+
if the environment is "installer command line" then
121121
write "[" && the internet date && "]" && ": ERROR " && pError & return to stdout
122122
quit 1
123123
else

0 commit comments

Comments
 (0)