This script can be used to build an installation, uninstallation and detection script to deploy applications through a software-deployment-system like Microsoft Intune
This script can be used to build an installation, uninstallation and detection script to deploy applications through a software-deployment-system like Microsoft Intune