Installing chocolatey package to 2 destinations #2700
-
I have a chocolatey package with an installChocolatey.ps1 file that calls Get-ChocolateyUnzip twice with two different destinations. When uninstalling the package, only one of the destinations is removed. Any tips on how to fix this? I am trying to avoid having two chocolatey packages, one for each destination folder. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Does this package have an uninstall script, and if so, what does it contain? You would need either a pair of |
Beta Was this translation helpful? Give feedback.
Does this package have an uninstall script, and if so, what does it contain?
You would need either a pair of
Uninstall-ChocolateyZipPackage
calls to remove the two folders, or twoRemove-Item
calls. If it is theUninstall-ChocolateyZipPackage
, then you would need to use different a-PackageName
for each call to it (and corresponding changes toGet-ChocolateyUnzip
).