Update Update-WAU.ps1
parent
9feb0c982a
commit
5dceecb80c
|
@ -24,8 +24,11 @@ function Update-WAU ($VersionToUpdate){
|
||||||
Expand-Archive -Path $ZipFile -DestinationPath $location -Force
|
Expand-Archive -Path $ZipFile -DestinationPath $location -Force
|
||||||
Get-ChildItem -Path $location -Recurse | Unblock-File
|
Get-ChildItem -Path $location -Recurse | Unblock-File
|
||||||
Write-Log "Unzip finished" "Green"
|
Write-Log "Unzip finished" "Green"
|
||||||
$TempPath = (Resolve-Path "$location\*\Winget-AutoUpdate\").Path
|
$TempPath = (Resolve-Path "$location\*\Winget-AutoUpdate\")[0].Path
|
||||||
|
$TempPath = (Resolve-Path "$location\*\Winget-AutoUpdate\")[0].Path
|
||||||
|
if ($TempPath){
|
||||||
Copy-Item -Path "$TempPath\*" -Destination "$WorkingDir\" -Exclude "icons" -Recurse -Force
|
Copy-Item -Path "$TempPath\*" -Destination "$WorkingDir\" -Exclude "icons" -Recurse -Force
|
||||||
|
}
|
||||||
|
|
||||||
#Remove update zip file
|
#Remove update zip file
|
||||||
Write-Log "Cleaning temp files"
|
Write-Log "Cleaning temp files"
|
||||||
|
|
Loading…
Reference in New Issue