Skip to content

Commit b84780b

Browse files
authored
Merge pull request #2 from Romanitho/Fix-download-button
Fix download button
2 parents 69086e6 + 85098f1 commit b84780b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Compiler/ps2exe.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
$Path = Split-Path $PSScriptRoot -Parent
66
$Icon = "$Path\sources\WingetIntunePackager.ico"
77
$Title = "WingetIntunePackager"
8-
$AppVersion = "1.1.0"
8+
$AppVersion = "1.1.1"
99
$InputFile = "$Path\sources\$Title.ps1"
1010
$OutputFile = "$Path\Compiler\$Title.exe"
1111
Invoke-ps2exe -inputFile $InputFile -outputFile $OutputFile -noConsole -title $Title -version $AppVersion -copyright "Romanitho" -product $Title -icon $Icon -noerror #-requireAdmin

sources/WingetIntunePackager.ps1

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://github.com/Romanitho/Winget-Intune-Packager
99
### APP INFO ###
1010

1111
#Winget Intune Packager version
12-
$Script:WingetIntunePackager = "1.1.0"
12+
$Script:WingetIntunePackager = "1.1.1"
1313
#Winget-Install Github Link
1414
$Script:WIGithubLink = "https://github.com/Romanitho/Winget-Install/archive/refs/tags/v1.10.1.zip"
1515
#Temp folder
@@ -577,10 +577,12 @@ function Get-WIPLatestVersion {
577577
$WIPSaveFile.FileName = "WingetIntunePackager_$WIPLatestVersion.exe"
578578
$response = $WIPSaveFile.ShowDialog() # $response can return OK or Cancel
579579
if ( $response -eq 'OK' ) {
580-
$WiGuiDlLink = "https://github.com/Romanitho/WingetIntunePackager/releases/download/v$WIPLatestVersion/WingetIntunePackager.exe"
581-
Invoke-WebRequest -Uri $WiGuiDlLink -OutFile $WiGuiSaveFile.FileName
582-
$WiGuiUpdate.Close()
583-
$WiGuiUpdate.DialogResult = [System.Windows.Forms.DialogResult]::OK
580+
$WIPDlLink = "https://github.com/Romanitho/WingetIntunePackager/releases/download/v$WIPLatestVersion/WingetIntunePackager.exe"
581+
Invoke-WebRequest -Uri $WIPDlLink -OutFile $WIPSaveFile.FileName
582+
$UpdateWindow.DialogResult = [System.Windows.Forms.DialogResult]::OK
583+
$UpdateWindow.Close()
584+
Start-Process -FilePath $WIPSaveFile.FileName
585+
Exit 0
584586
}
585587
})
586588

0 commit comments

Comments
 (0)