Completed View 7.0 support
All the installers run correctly added "-verb runas" to start-process cmdletspull/45/head
parent
4441b8c9e6
commit
ce80804955
|
@ -100,7 +100,6 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
|
||||||
$mailmessage.Body = $Summary
|
$mailmessage.Body = $Summary
|
||||||
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
||||||
$mailmessage.Attachments.Add($attach)
|
$mailmessage.Attachments.Add($attach)
|
||||||
$message.Attachments.Add($attach)
|
|
||||||
$SMTPClient.Send($mailmessage)
|
$SMTPClient.Send($mailmessage)
|
||||||
}
|
}
|
||||||
Read-Host "Rebooting after VMTools Install"
|
Read-Host "Rebooting after VMTools Install"
|
||||||
|
|
|
@ -103,8 +103,7 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
|
||||||
$mailmessage.Subject = "$env:computername VM build finished"
|
$mailmessage.Subject = "$env:computername VM build finished"
|
||||||
$mailmessage.Body = $Summary
|
$mailmessage.Body = $Summary
|
||||||
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
||||||
$mailmessage.Attachments.Add($attach)
|
$mailmessage.Attachments.Add($attach)
|
||||||
$message.Attachments.Add($attach)
|
|
||||||
$SMTPClient.Send($mailmessage)
|
$SMTPClient.Send($mailmessage)
|
||||||
}
|
}
|
||||||
Read-Host "Reboot?"
|
Read-Host "Reboot?"
|
||||||
|
|
|
@ -602,7 +602,6 @@ if (($vmtools) -and (-Not (Test-Path "C:\Program Files\VMware\VMware Tools\VMwar
|
||||||
$mailmessage.Body = $Summary
|
$mailmessage.Body = $Summary
|
||||||
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
||||||
$mailmessage.Attachments.Add($attach)
|
$mailmessage.Attachments.Add($attach)
|
||||||
$message.Attachments.Add($attach)
|
|
||||||
$SMTPClient.Send($mailmessage)
|
$SMTPClient.Send($mailmessage)
|
||||||
}
|
}
|
||||||
Start-Process B:\VMTools\setup64.exe -ArgumentList '/s /v "/qn"' -verb RunAs -Wait
|
Start-Process B:\VMTools\setup64.exe -ArgumentList '/s /v "/qn"' -verb RunAs -Wait
|
||||||
|
|
|
@ -94,7 +94,6 @@ if (([bool]($emailto -as [Net.Mail.MailAddress])) -and ($SmtpServer -ne "none"))
|
||||||
$mailmessage.Body = $Summary
|
$mailmessage.Body = $Summary
|
||||||
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
$attach = new-object Net.Mail.Attachment("C:\buildlog.txt")
|
||||||
$mailmessage.Attachments.Add($attach)
|
$mailmessage.Attachments.Add($attach)
|
||||||
$message.Attachments.Add($attach)
|
|
||||||
$SMTPClient.Send($mailmessage)
|
$SMTPClient.Send($mailmessage)
|
||||||
}
|
}
|
||||||
Read-Host "Rebooting after VMTools Install"
|
Read-Host "Rebooting after VMTools Install"
|
||||||
|
|
Loading…
Reference in New Issue