major change to override Write-Error func
This commit is contained in:
@@ -14,17 +14,17 @@ $ALST = "${WorkingDir}\AdskLicensingSupportTool.exe"
|
||||
If ( Test-Path $ALST ) {
|
||||
Write-Output "Resetting all Autodesk product licenses to named-user licenses"
|
||||
Try { Start-Process $ALST -ArgumentList '-r ALL:User' -Wait }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
}
|
||||
|
||||
If ( Test-Path $LicensingSupportTool ) {
|
||||
Write-Output "Deleting ""${LicensingSupportTool}"""
|
||||
Try { Remove-Item $LicensingSupportTool -Force -ErrorAction SilentlyContinue }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
}
|
||||
|
||||
If ( Test-Path $WorkingDir ) {
|
||||
Write-Output "Deleting ""${WorkingDir}"""
|
||||
Try { Remove-Item $WorkingDir -Force -Recurse -ErrorAction SilentlyContinue }
|
||||
Catch { LogErr $_.Exception.Message }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
}
|
||||
Reference in New Issue
Block a user