NOTE: This package has been deprecated, in favour of the chocolatey-core.extension.
This package provides helper functions installed as a Chocolatey extension. These functions may be used in Chocolatey install/uninstall scripts by declaring this package a dependency in your package's nuspec.
<dependencies>
<dependency id="chocolatey-uninstall.extension" />
</dependencies>
Functions
Get-UninstallRegistryKey -- retrieve registry keys for use during uninstall of Chocolatey packages
- To use, add the following to chocolateyUninstall.ps1, setting
$softwareName to the name as seen in Control Panel's "Programs and Features"
$softwareName = "Example Name"
[array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName
- The found registry key's properties are accessible by dot notation. For example,
$key.UninstallString