Skip to content

Commit 0eafb72

Browse files
committed
prevent prompting
1 parent 1e1baff commit 0eafb72

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Initialize-BuildVM.ps1

+6-4
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,19 @@ param(
9696
}
9797
}
9898

99-
$logFile = "$PWD\initialize-$(get-date -Format yyyyMMdd-hhmm).log"
100-
$transcript = "$PWD\initialize-transcript-$(get-date -Format yyyyMMdd-hhmm).log"
10199

102100
Start-Transcript -Path $transcript
103101

102+
LogIt "Starting init: SkipVsts: $SkipVsts SkipSql: $SkipSql SkipTentacle: $SkipTentacle SkipIIS: $SkipIIS"
103+
LogIt "Running from $PSScriptRoot"
104+
104105
LogIt "Creating folder $Folder"
105106
$null = mkdir $Folder -ErrorAction SilentlyContinue
106107
Set-Location $Folder
107108

109+
$logFile = "$PWD\initialize-$(get-date -Format yyyyMMdd-hhmm).log"
110+
$transcript = "$PWD\initialize-transcript-$(get-date -Format yyyyMMdd-hhmm).log"
111+
108112
if ( Test-Path .\BootcampScripts )
109113
{
110114
LogIt ".\BootcampScripts exists, removing it"
@@ -121,8 +125,6 @@ try {
121125

122126
$userDomain = "$env:COMPUTERNAME\$AdminUserName"
123127

124-
logIt "Starting init: SkipVsts: $SkipVsts SkipSql: $SkipSql SkipTentacle: $SkipTentacle SkipIIS: $SkipIIS"
125-
126128
if ( !$SkipVsts )
127129
{
128130
.\Add-VstsAgent.ps1 -LogFile $logFile -AccountUrl $AccountUrl -PAT $PAT -AdminUser $AdminUserName -AdminUserPwd $AdminUserPwd -AgentPool $AgentPool -DownloadFolder $PSScriptRoot

Install-Chrome.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ param()
77

88
Logit "Installing Chrome"
99

10-
install-packageprovider chocolatey
10+
install-packageprovider chocolatey -force
1111
Logit -indent "Chocolatey installed"
1212

13-
install-package googlechrome
13+
install-package googlechrome -force
1414
Logit -indent "Chrome installed"

0 commit comments

Comments
 (0)