Update SM.ps1
This commit is contained in:
28
SM.ps1
28
SM.ps1
@@ -3,6 +3,23 @@
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region ScriptMonkey Entrypoint
|
||||||
|
|
||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
[switch]$SilentInstall
|
||||||
|
)
|
||||||
|
|
||||||
|
# If the user asked for a silent install, do just that and quit
|
||||||
|
if ($SilentInstall) {
|
||||||
|
Write-LogHelper -Message "Silent install requested" -Level Info -TaskCategory "Startup"
|
||||||
|
Install-SVSMSP -InstallToolkit
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
# STACK = Scripted Tooling for Automated Client Kickoff
|
# STACK = Scripted Tooling for Automated Client Kickoff
|
||||||
# MONKEY = Module-based Onboarding & Next-step Kickoff Engine Yoke
|
# MONKEY = Module-based Onboarding & Next-step Kickoff Engine Yoke
|
||||||
# Conveys the idea of coupling tasks together and keeping them under control.
|
# Conveys the idea of coupling tasks together and keeping them under control.
|
||||||
@@ -1231,9 +1248,14 @@ function Start-Server {
|
|||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
# Only launch UI if not in silent mode
|
||||||
# open browser on whatever port you've set
|
if (-not $SilentInstall) {
|
||||||
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
|
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
|
||||||
|
Start-Server
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
# open browser on whatever port you've set
|
||||||
|
#Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
|
||||||
|
|
||||||
# now start your server (this will block until you hit Exit in the UI)
|
# now start your server (this will block until you hit Exit in the UI)
|
||||||
Start-Server
|
#Start-Server
|
||||||
|
|||||||
Reference in New Issue
Block a user