Bumped to 0.7.4.1

Overhauled installer -- fixed a number of small bugs
Better output during installation
Complete uninstaller - removes services, etc
This commit is contained in:
Iristyle
2012-10-21 20:54:03 -04:00
parent 8da49af35d
commit 23c0459e8f
4 changed files with 162 additions and 34 deletions

View File

@@ -0,0 +1,24 @@
function WaitForSuccess([ScriptBlock] $script, [int]$seconds = 10,
[string]$description = 'operation to complete')
{
$skip = $false
Write-Host "Waiting up to $($seconds)s for $description..."
$result = 0..($seconds * 2) |
% {
if ($skip) { return $true }
$status = &$script
if ($status -eq $true)
{
$skip = $true
return $true
}
elseif ($service)
{
Start-Sleep -Milliseconds 500
}
return $false
} |
Select -Last 1
return $result
}