pull/508/head
romanitho 2023-12-06 01:05:18 +01:00
parent 9f165a8b3d
commit 4890e51a69
1 changed files with 7 additions and 4 deletions

View File

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