Completed View 7.0 support

All the installers run correctly
added "-verb runas" to start-process cmdlets
pull/45/head
DemitasseNZ 2016-07-26 18:41:45 +12:00
parent 4441b8c9e6
commit ce80804955
4 changed files with 1 additions and 5 deletions

View File

@ -100,7 +100,6 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
$mailmessage.Body = $Summary
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
$mailmessage.Attachments.Add($attach)
$message.Attachments.Add($attach)
$SMTPClient.Send($mailmessage)
}
Read-Host "Rebooting after VMTools Install"

View File

@ -103,8 +103,7 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
$mailmessage.Subject = "$env:computername VM build finished"
$mailmessage.Body = $Summary
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
$mailmessage.Attachments.Add($attach)
$message.Attachments.Add($attach)
$mailmessage.Attachments.Add($attach)
$SMTPClient.Send($mailmessage)
}
Read-Host "Reboot?"

View File

@ -602,7 +602,6 @@ if (($vmtools) -and (-Not (Test-Path "C:\Program Files\VMware\VMware Tools\VMwar
$mailmessage.Body = $Summary
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
$mailmessage.Attachments.Add($attach)
$message.Attachments.Add($attach)
$SMTPClient.Send($mailmessage)
}
Start-Process B:\VMTools\setup64.exe -ArgumentList '/s /v "/qn"' -verb RunAs -Wait

View File

@ -94,7 +94,6 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
$mailmessage.Body = $Summary
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
$mailmessage.Attachments.Add($attach)
$message.Attachments.Add($attach)
$SMTPClient.Send($mailmessage)
}
Read-Host "Rebooting after VMTools Install"