Uninstalls a previous installed zip package, may not be necessary.
Uninstall-ChocolateyZipPackage `
-PackageName <String> `
-ZipFileName <String> `
[-IgnoredArguments <Object[]>] [<CommonParameters>]
This will uninstall a zip file if installed via Install-ChocolateyZipPackage. This is not necessary if the files are unzipped to the package directory.
Not necessary if files are unzippped to package directory.
This helper reduces the number of lines one would have to remove the files extracted from a previously installed zip file. This method has error handling built into it.
None
EXAMPLE 1
Uninstall-ChocolateyZipPackage '__NAME__' 'filename.zip'
None
None
The name of the package - while this is an arbitrary value, it's recommended that it matches the package id.
Property | Value |
---|---|
Aliases | |
Required? | true |
Position? | 1 |
Default Value | |
Accept Pipeline Input? | false |
This is the zip filename originally installed.
Property | Value |
---|---|
Aliases | |
Required? | true |
Position? | 2 |
Default Value | |
Accept Pipeline Input? | false |
Allows splatting with arguments that do not apply. Do not use directly.
Property | Value |
---|---|
Aliases | |
Required? | false |
Position? | named |
Default Value | |
Accept Pipeline Input? | false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
http://go.microsoft.com/fwlink/p/?LinkID=113216 .
- [[Install-ChocolateyZipPackage|HelpersInstallChocolateyZipPackage]]
- [[Uninstall-ChocolateyPackage|HelpersUninstallChocolateyPackage]]
[[Function Reference|HelpersReference]]
NOTE: This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Uninstall-ChocolateyZipPackage -Full
.
View the source for Uninstall-ChocolateyZipPackage