aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlili <me@miquellionel.ovh>2019-04-04 19:25:19 +0200
committerlili <me@miquellionel.ovh>2019-04-04 19:25:19 +0200
commit985125e526aeebe0867ee30a603ac6fb3216252f (patch)
tree9e567883908a2f5ce03f9a18323d68dceacad6cd
parent80a31dc2f6e89b3dbdc33d9dc877b3264b18f648 (diff)
downloadxidel_chocolatey-985125e526aeebe0867ee30a603ac6fb3216252f.tar.gz
xidel_chocolatey-985125e526aeebe0867ee30a603ac6fb3216252f.zip
Supprimer 'tools/chocolateyuninstall.ps1'
-rw-r--r--tools/chocolateyuninstall.ps136
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/chocolateyuninstall.ps1 b/tools/chocolateyuninstall.ps1
deleted file mode 100644
index ccdebae..0000000
--- a/tools/chocolateyuninstall.ps1
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-$ErrorActionPreference = 'Stop';
-$packageArgs = @{
- packageName = $env:ChocolateyPackageName
- softwareName = 'xidel*'
- fileType = 'exe'
- silentArgs = "/qn /norestart"
- validExitCodes= @(0, 3010, 1605, 1614, 1641)
-}
-
-$uninstalled = $false
-[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']
-
-if ($key.Count -eq 1) {
- $key | % {
- $packageArgs['file'] = "$($_.UninstallString)"
- if ($packageArgs['fileType'] -eq 'MSI') {
- $packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
-
- $packageArgs['file'] = ''
- }
-
- Uninstall-ChocolateyZipPackage @packageArgs
- }
-} elseif ($key.Count -eq 0) {
- Write-Warning "$packageName has already been uninstalled by other means."
-} elseif ($key.Count -gt 1) {
- Write-Warning "$($key.Count) matches found!"
- Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
- Write-Warning "Please alert package maintainer the following keys were matched:"
- $key | % {Write-Warning "- $($_.DisplayName)"}
-}
-
-