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( $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
} }