Skip to content

Commit

Permalink
choco(minor): close #5 updated uninstaller script
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-cbon committed Feb 18, 2017
1 parent 8815bde commit d6352ab
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions templates/choco/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
$packageName = "{{.Choco.ID}}";
$fileType = 'msi';
$silentArgs = '/qr /norestart';
$validExitCodes = @(0);
$scriptPath = $(Split-Path $MyInvocation.MyCommand.Path);
$fileFullPath = Join-Path $scriptPath '{{.Choco.MsiFile}}';

try {
$msiArgs = "/x $fileFullPath $silentArgs";
Start-ChocolateyProcessAsAdmin "$msiArgs" 'msiexec' -validExitCodes $validExitCodes
}
catch {
throw $_.Exception
}
Uninstall-ChocolateyPackage $packageName $fileType "$fileFullPath /qr"

0 comments on commit d6352ab

Please sign in to comment.