fix zip
parent
9f165a8b3d
commit
4890e51a69
7
Gui.ps1
7
Gui.ps1
|
@ -336,8 +336,8 @@ function Get-WAUConfiguratorLatestVersion {
|
||||||
$DownloadButton.add_click(
|
$DownloadButton.add_click(
|
||||||
{
|
{
|
||||||
$WAUConfiguratorSaveFile = New-Object System.Windows.Forms.SaveFileDialog
|
$WAUConfiguratorSaveFile = New-Object System.Windows.Forms.SaveFileDialog
|
||||||
$WAUConfiguratorSaveFile.Filter = "Exe file (*.exe)|*.exe"
|
$WAUConfiguratorSaveFile.Filter = "Zip file (*.zip)|*.zip"
|
||||||
$WAUConfiguratorSaveFile.FileName = "WAUConfigurator_$WAUConfiguratorLatestVersion.exe"
|
$WAUConfiguratorSaveFile.FileName = "WAU_$WAUConfiguratorLatestVersion.zip"
|
||||||
$response = $WAUConfiguratorSaveFile.ShowDialog() # $response can return OK or Cancel
|
$response = $WAUConfiguratorSaveFile.ShowDialog() # $response can return OK or Cancel
|
||||||
if ( $response -eq 'OK' ) {
|
if ( $response -eq 'OK' ) {
|
||||||
Start-PopUp "Downloading WAU Configurator $WAUConfiguratorLatestVersion..."
|
Start-PopUp "Downloading WAU Configurator $WAUConfiguratorLatestVersion..."
|
||||||
|
@ -347,6 +347,9 @@ function Get-WAUConfiguratorLatestVersion {
|
||||||
$UpdateWindow.Close()
|
$UpdateWindow.Close()
|
||||||
Start-Sleep 3
|
Start-Sleep 3
|
||||||
|
|
||||||
|
#Open folder
|
||||||
|
Start-Process (Split-Path -parent $WAUConfiguratorSaveFile.FileName)
|
||||||
|
|
||||||
Close-PopUp
|
Close-PopUp
|
||||||
Exit 0
|
Exit 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue