Chocolatey extension module that allows Chocolatey packages to display toast messages to report their (un)installation progress. The notifications are also displayed in Windows Action Center.
Install through chocolatey:
PS> choco install chocolatey-toast.extensionNOTE: The module is usually automatically installed as a dependency.
-
To create a package that uses this extension module add the following to your nuspec specification:
<dependencies> <dependency id="chocolatey-toast.extension" version="1.0.0" /> </dependencies>
NOTE: Make sure you use adequate minimum version.
-
In your chocolatey package chocolateyinstall.ps1 file add the following function calls:
Show-ChocolateyInstallStartedToast $packageName $packageVersion; Show-ChocolateyInstallSuccessToast $packageName $packageVersion; Show-ChocolateyInstallFailedToast $packageName $packageVersion;
-
In your chocolatey package chocolateyuninstall.ps1 file use the following function calls:
Show-ChocolateyUninstallStartedToast $packageName $packageVersion; Show-ChocolateyUninstallSuccessToast $packageName $packageVersion; Show-ChocolateyUninstallFailedToast $packageName $packageVersion;
- Fixed issues with toast not showing due to a Windows update
- Added support to Show-ChocolateyToast message
- Added support to Show-ChocolateyInstallStartedToast message
- Added support to Show-ChocolateyInstallSuccessToast message
- Added support to Show-ChocolateyInstallFailedToast message
- Added support to Show-ChocolateyUninstallStartedToast message
- Added support to Show-ChocolateyUninstallSuccessToast message
- Added support to Show-ChocolateyUninstallFailedToast message
- Works only on Windows 10
- Can be used on other versions of Windows but nothing will happen;