commit
dcce0a0988
|
@ -153,7 +153,7 @@ if (Test-Network) {
|
||||||
#Get Available Version
|
#Get Available Version
|
||||||
$Script:WAUAvailableVersion = Get-WAUAvailableVersion
|
$Script:WAUAvailableVersion = Get-WAUAvailableVersion
|
||||||
#Compare
|
#Compare
|
||||||
if ([version]$WAUAvailableVersion -gt [version]$WAUCurrentVersion) {
|
if ([version]$WAUAvailableVersion.replace("-n", "") -gt [version]$WAUCurrentVersion.replace("-n", "")) {
|
||||||
#If new version is available, update it
|
#If new version is available, update it
|
||||||
Write-ToLog "WAU Available version: $WAUAvailableVersion" "Yellow"
|
Write-ToLog "WAU Available version: $WAUAvailableVersion" "Yellow"
|
||||||
Update-WAU
|
Update-WAU
|
||||||
|
|
|
@ -114,7 +114,7 @@ function Update-WAU {
|
||||||
|
|
||||||
#Update WAU and run
|
#Update WAU and run
|
||||||
Write-ToLog "Updating WAU..." "Yellow"
|
Write-ToLog "Updating WAU..." "Yellow"
|
||||||
Start-Process msiexec.exe -ArgumentList "/i $MsiFile /qn /L*v ""$WorkingDir\logs\WAU-Installer.log"" RUN_WAU=YES"
|
Start-Process msiexec.exe -ArgumentList "/i $MsiFile /qn /L*v ""$WorkingDir\logs\WAU-Installer.log"" RUN_WAU=YES INSTALLDIR=""$WorkingDir"""
|
||||||
|
|
||||||
Exit 0
|
Exit 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue