Skip to content

Commit

Permalink
Merge pull request #2 from Romanitho/Fix-download-button
Browse files Browse the repository at this point in the history
Fix download button
  • Loading branch information
Romanitho authored Apr 6, 2023
2 parents 69086e6 + 85098f1 commit b84780b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Compiler/ps2exe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$Path = Split-Path $PSScriptRoot -Parent
$Icon = "$Path\sources\WingetIntunePackager.ico"
$Title = "WingetIntunePackager"
$AppVersion = "1.1.0"
$AppVersion = "1.1.1"
$InputFile = "$Path\sources\$Title.ps1"
$OutputFile = "$Path\Compiler\$Title.exe"
Invoke-ps2exe -inputFile $InputFile -outputFile $OutputFile -noConsole -title $Title -version $AppVersion -copyright "Romanitho" -product $Title -icon $Icon -noerror #-requireAdmin
12 changes: 7 additions & 5 deletions sources/WingetIntunePackager.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ https://github.com/Romanitho/Winget-Intune-Packager
### APP INFO ###

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

Expand Down

0 comments on commit b84780b

Please sign in to comment.