This is a tool to make intune winget installation easier.
The scripts and the IntuneWin file can be used to build a package in which the sources are installed directly via winget.
- Recreate a "Windows App (win32)" app in Intune.
- Integrate the “install.intunewin”. Nothing needs to be changed.
- Adjust the texts, select and integrate the icon.
- Set the following as the “Install command” program: powershell.exe -executionpolicy bypass -file install.ps1 Notepad++.Notepad++ Where “Notepad++.Notepad++” is to be replaced by the corresponding ID of the program.
- Alternatively, you can also powershell.exe -executionpolicy bypass -file winget.ps1 PARAMETERS Here PARAMETER must be replaced by the normal winget parameters.
- For the "Uninstall command" the corresponding information is given powershell.exe -executionpolicy bypass -file uninstall.ps1 Notepad++.Notepad++ Where “Notepad++.Notepad++” is to be replaced by the corresponding ID of the program.
- check.ps1 can be used after customization to determine whether the program is installed.
However, it is better to check for the existence of the executable file!