|
@@ -10,6 +10,11 @@ Function BecomeAdmin($invocation){
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+Function LogFilePath($invocation,$name){
|
|
|
|
|
+ $logfilename = $name+"_"+([System.DateTime]::Now).ToFileTime()+".log"
|
|
|
|
|
+ [System.IO.Path]::Combine($invocation.MyCommand.Definition, "..", "..","log", $logfilename)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
Function AskContinue($text)
|
|
Function AskContinue($text)
|
|
|
{
|
|
{
|
|
|
[System.Windows.Forms.MessageBox]::Show($text, 'Continue','YesNo','Info')
|
|
[System.Windows.Forms.MessageBox]::Show($text, 'Continue','YesNo','Info')
|
|
@@ -205,7 +210,6 @@ Function GuiSelectDialog($items){
|
|
|
$listBox.Font = New-Object System.Drawing.Font($fontFamily, $listBox.Font.Size)
|
|
$listBox.Font = New-Object System.Drawing.Font($fontFamily, $listBox.Font.Size)
|
|
|
$listBox.Height = 150
|
|
$listBox.Height = 150
|
|
|
|
|
|
|
|
- $i = 0
|
|
|
|
|
foreach ($it in $items){
|
|
foreach ($it in $items){
|
|
|
$listBox.Items.Add($it) | Out-Null
|
|
$listBox.Items.Add($it) | Out-Null
|
|
|
}
|
|
}
|