Merge pull request #531 from Romanitho/wau-configurator

Update asset to WAU-Configurator.zip
pull/535/head
Romain 2023-12-13 17:43:21 +01:00 committed by GitHub
commit 4938e065fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -347,11 +347,11 @@ function Get-WAUConfiguratorLatestVersion {
{
$WAUConfiguratorSaveFile = New-Object System.Windows.Forms.SaveFileDialog
$WAUConfiguratorSaveFile.Filter = "Zip file (*.zip)|*.zip"
$WAUConfiguratorSaveFile.FileName = "WAU_$WAUConfiguratorLatestVersion.zip"
$WAUConfiguratorSaveFile.FileName = "WAU-Configurator_$WAUConfiguratorLatestVersion.zip"
$response = $WAUConfiguratorSaveFile.ShowDialog() # $response can return OK or Cancel
if ( $response -eq 'OK' ) {
Start-PopUp "Downloading WAU Configurator $WAUConfiguratorLatestVersion..."
$WAUConfiguratorDlLink = "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v$WAUConfiguratorLatestVersion/WAU.zip"
$WAUConfiguratorDlLink = "https://github.com/Romanitho/Winget-AutoUpdate/releases/download/v$WAUConfiguratorLatestVersion/WAU-Configurator.zip"
Invoke-WebRequest -Uri $WAUConfiguratorDlLink -OutFile $WAUConfiguratorSaveFile.FileName -UseBasicParsing
$UpdateWindow.DialogResult = [System.Windows.Forms.DialogResult]::OK
$UpdateWindow.Close()