Update/Deploy Target Application to Latest Version Winget
Purpose
This solution is designed to achieve the appropriate application upgrade to the latest version detected by Winget.
Associated Content
Content | Type | Function |
---|---|---|
Application - Latest Version Detection [Winget] | Script | This script is designed to gather the latest version of applications supported by Winget, which is provided in the monitor "ProVal - Production - Latest Version Detection". |
Winget - Install/Update [Autofix,Param] | Script | This script is created to update the application whose PackageID and Source are provided in the monitor "ProVal - Production - Install/Update [Winget]". |
Internal Monitor - Application - Latest Version Detection | Monitor | This monitor is created to fetch the latest version of the application for which you want Winget to control the upgrade. |
Internal Monitor - Application - Install/Update [Winget] | Monitor | This monitor is designed to update the application based on the PackageID, Source, and Application Name provided inside the monitor. |
△ Custom - Execute Script - Application Latest Version | Alert Template | This alert template is designed to be used with the monitor "ProVal - Production - Latest Version Detection" to run the script "Application - Latest Version Detection [Winget]". |
△ CUSTOM - Application Install/Update - Winget | Alert Template | This alert template is designed to be used with the monitor "ProVal - Production - Install/Update [Winget]" to run the script "Winget - Install/Update [Autofix,Param]. |
Implementation
- Import scripts Application - Latest Version Detection [Winget] and Winget - Install/Update [Autofix,Param].
- Import monitors ProVal - Production - Latest Version Detection and ProVal - Production - Install/Update [Winget].
- Import the alert templates "△ Custom - Execute Script - Application Latest Version" and "△ CUSTOM - Application Install/Update - Winget".
- Create a duplicate of both monitors and remove the imported monitors to avoid confusion:
- Remove the 'Copy of' from the monitor names and modify the new monitors with the required details below:
- Apply the alert template "△ Custom - Execute Script - Application Latest Version" with monitor ProVal - Production - Latest Version Detection first and run it once before implementing the other monitor so that the system property gets created.
- Apply the alert template "△ CUSTOM - Application Install/Update - Winget" with monitor ProVal - Production - Install/Update [Winget] and make the adjustments as mentioned in the screenshot.