File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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"
1111Invoke-ps2exe - inputFile $InputFile - outputFile $OutputFile - noConsole - title $Title - version $AppVersion - copyright " Romanitho" - product $Title - icon $Icon - noerror # -requireAdmin
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments