You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host-BackgroundColor Black -ForegroundColor Green "Allow the script to install $($programName)?"
34
-
Write-Host-BackgroundColor Black "Tip: Note that if you type all you won't be prompted for subsequent installations"
33
+
Write-Host-ForegroundColor Green "Allow the script to install $($programName)?"
34
+
Write-Host"Tip: Note that if you type all you won't be prompted for subsequent installations"
35
35
do {
36
36
$script:answer= (Read-Host"y/n/all").ToLower()
37
37
} until ($script:answer-eq"y"-or$script:answer-eq"n"-or$script:answer-eq"all")
38
38
39
39
if ($script:answer-eq"n") {
40
-
Write-Host-BackgroundColor Black -ForegroundColor Yellow "You've chosen not to install $($programName) some features of NativeScript may not work correctly if you haven't already installed it"
40
+
Write-Host-ForegroundColor Yellow "You've chosen not to install $($programName) some features of NativeScript may not work correctly if you haven't already installed it"
41
41
return
42
42
}
43
43
}
44
44
45
-
Write-Host-BackgroundColor Black $message
45
+
Write-Host$message
46
46
Invoke-Expression($script)
47
47
if ($LASTEXITCODE-ne0) {
48
-
Write-Host-BackgroundColor Black -ForegroundColor Yellow "WARNING: $($programName) not installed"
48
+
Write-Host-ForegroundColor Yellow "WARNING: $($programName) not installed"
49
49
}
50
50
}
51
51
@@ -59,7 +59,7 @@ function Pause {
59
59
Install "Chocolately(It's mandatory for the rest of the script)""Installing Chocolately""iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))"
60
60
61
61
if ((Get-Command"cinst"-ErrorAction SilentlyContinue) -eq$null) {
62
-
Write-Host-BackgroundColor Black -ForegroundColor Red "Chocolatey is not installed or not configured properly. Download it from https://chocolatey.org/, install, set it up and run this script again."
62
+
Write-Host-ForegroundColor Red "Chocolatey is not installed or not configured properly. Download it from https://chocolatey.org/, install, set it up and run this script again."
63
63
Pause
64
64
exit1
65
65
}
@@ -90,5 +90,5 @@ if (!$env:JAVA_HOME) {
90
90
$env:JAVA_HOME=$javaHome;
91
91
}
92
92
93
-
Write-Host-BackgroundColor Black -ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
93
+
Write-Host-ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
0 commit comments