Merge pull request #531 from Romanitho/wau-configurator
Update asset to WAU-Configurator.zippull/535/head
commit
4938e065fe
|
@ -347,11 +347,11 @@ function Get-WAUConfiguratorLatestVersion {
|
||||||
{
|
{
|
||||||
$WAUConfiguratorSaveFile = New-Object System.Windows.Forms.SaveFileDialog
|
$WAUConfiguratorSaveFile = New-Object System.Windows.Forms.SaveFileDialog
|
||||||
$WAUConfiguratorSaveFile.Filter = "Zip file (*.zip)|*.zip"
|
$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
|
$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..."
|
||||||
$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
|
Invoke-WebRequest -Uri $WAUConfiguratorDlLink -OutFile $WAUConfiguratorSaveFile.FileName -UseBasicParsing
|
||||||
$UpdateWindow.DialogResult = [System.Windows.Forms.DialogResult]::OK
|
$UpdateWindow.DialogResult = [System.Windows.Forms.DialogResult]::OK
|
||||||
$UpdateWindow.Close()
|
$UpdateWindow.Close()
|
||||||
|
|
Loading…
Reference in New Issue