Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error launching NSIS uninstaller #1135

Closed
AdmiringWorm opened this issue Jan 13, 2017 · 4 comments
Closed

Error launching NSIS uninstaller #1135

AdmiringWorm opened this issue Jan 13, 2017 · 4 comments

Comments

@AdmiringWorm
Copy link
Member

AdmiringWorm commented Jan 13, 2017

What You Are Seeing?

When trying to uninstall a package I'm currently working chocolatey is unable to launch the NSIS uninstaller executable both trough the uninstall script I've added and through the auto uninstaller.
However manually importing the chocolateyInstaller.psm1 file in a new powershell window and sourcing the uninstall script do launch the uninstaller and uninstalls the software

capture

What is Expected?

Was expecting chocolatey to be able to launch the installer.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Install the provided nupkg file.
  2. Try uninstalling it.

Package file:
https://dl.dropboxusercontent.com/u/8261542/waterfox.50.1.0.nupkg

What Have You Tried?

I've tried to call the uninstaller using several different means:

  1. Using Uninstall-ChocolateyPackage
  2. Using Start-ChocolateyProcessAsAdmin
  3. Manually using Start-Process

None of those above works when chocolatey is running the script.

Output Log

2017-01-13 15:39:36,902 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2017-01-13 15:39:36,902 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb
2017-01-13 15:39:36,933 [DEBUG] - XmlConfiguration is now operational
2017-01-13 15:39:37,189 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.update".
2017-01-13 15:39:37,189 [INFO ] - ============================================================
2017-01-13 15:39:37,199 [INFO ] - Chocolatey v0.10.3
2017-01-13 15:39:37,199 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2017-01-13 15:39:37,199 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-01-13 15:39:37,199 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-01-13 15:39:37,209 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" uninstall waterfox
2017-01-13 15:39:37,209 [DEBUG] - Received arguments: uninstall waterfox
2017-01-13 15:39:37,271 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-01-13 15:39:37,271 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-01-13 15:39:37,281 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2017-01-13 15:39:37,343 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2017-01-13 15:39:37,343 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2017-01-13 15:39:37,353 [DEBUG] - Configuration: CommandName='uninstall'|CacheLocation='c:\choco-cache'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Force='False'|Noop='False'|
HelpRequested='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='waterfox'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='waterfox'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.10.3.0'|
Information.ChocolateyProductVersion='0.10.3'|
Information.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
2017-01-13 15:39:37,353 [DEBUG] - _ Chocolatey:ChocolateyUninstallCommand - Normal Run Mode _
2017-01-13 15:39:37,353 [INFO ] - Uninstalling the following packages:
2017-01-13 15:39:37,353 [INFO ] - waterfox
2017-01-13 15:39:37,364 [DEBUG] - Current environment values (may contain sensitive data):
2017-01-13 15:39:37,364 [DEBUG] -   * 'TMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2017-01-13 15:39:37,364 [DEBUG] -   * 'TEMP'='C:\Users\Administrator\AppData\Local\Temp' ('User')
2017-01-13 15:39:37,364 [DEBUG] -   * 'ChocolateyLastPathUpdate'='Fri Dec  9 21:26:31 2016' ('User')
2017-01-13 15:39:37,364 [DEBUG] -   * 'trigger'='1' ('User')
2017-01-13 15:39:37,364 [DEBUG] -   * 'FP_NO_HOST_CHECK'='NO' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'USERNAME'='SYSTEM' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin;C:\ProgramData\chocolatey\bin;' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'TMP'='C:\Windows\TEMP' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'OS'='Windows_NT' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'windir'='C:\Windows' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'TEMP'='C:\Windows\TEMP' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PSModulePath'='C:\Windows\system32\WindowsPowerShell\v1.0\Modules\' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'NUMBER_OF_PROCESSORS'='2' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PROCESSOR_LEVEL'='16' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PROCESSOR_IDENTIFIER'='AMD64 Family 16 Model 4 Stepping 2, AuthenticAMD' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'PROCESSOR_REVISION'='0402' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'HOME'='C:\Users\Administrator' ('Machine')
2017-01-13 15:39:37,364 [DEBUG] -   * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2017-01-13 15:39:37,425 [DEBUG] - Running list with the following filter = ''
2017-01-13 15:39:37,425 [DEBUG] - --- Start of List ---
2017-01-13 15:39:37,589 [DEBUG] - chocolatey 0.10.3
2017-01-13 15:39:37,599 [DEBUG] - chocolatey-core.extension 1.0.4
2017-01-13 15:39:37,599 [DEBUG] - waterfox 50.1.0
2017-01-13 15:39:37,599 [DEBUG] - --- End of List ---
2017-01-13 15:39:37,763 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp".
2017-01-13 15:39:37,763 [DEBUG] - Backing up existing waterfox prior to operation.
2017-01-13 15:39:37,773 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\waterfox'
 to 'C:\ProgramData\chocolatey\lib-bkp\waterfox'
2017-01-13 15:39:39,096 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\waterfox".
2017-01-13 15:39:39,096 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\waterfox.nupkg"
 to "C:\ProgramData\chocolatey\lib\waterfox\waterfox.nupkg".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\waterfox.nuspec"
 to "C:\ProgramData\chocolatey\lib\waterfox\waterfox.nuspec".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\waterfox\legal".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\legal\LICENSE.md"
 to "C:\ProgramData\chocolatey\lib\waterfox\legal\LICENSE.md".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\waterfox\legal\VERIFICATION.txt".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\waterfox\tools".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyInstall.ps1".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\tools\chocolateyUninstall.ps1"
 to "C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1".
2017-01-13 15:39:39,158 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\waterfox\tools\Waterfox 50.1.0 Setup_x64.exe.ignore"
 to "C:\ProgramData\chocolatey\lib\waterfox\tools\Waterfox 50.1.0 Setup_x64.exe.ignore".
2017-01-13 15:39:40,152 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\waterfox'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\waterfox.nupkg'
  with checksum '51AA76581A73F1E3E4ACDD4E1F1197A0'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\waterfox.nuspec'
  with checksum 'E794AD8849C9351EF62F2CE9A421D496'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\legal\LICENSE.md'
  with checksum '55A288862EC4D1FD20F996344D511A1F'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\legal\VERIFICATION.txt'
  with checksum 'D3DDB400D0C33ACE3A46F2264803F50E'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyInstall.ps1'
  with checksum 'DEEB831B1CB9E0DB431CD988A6ABB2F7'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1'
  with checksum '07A54A68459159E1E02EE436D230BC43'
2017-01-13 15:39:40,480 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\tools\Waterfox 50.1.0 Setup_x64.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2017-01-13 15:39:41,679 [INFO ] - 
waterfox v50.1.0
2017-01-13 15:39:41,700 [DEBUG] - Setting installer args for waterfox
2017-01-13 15:39:41,700 [DEBUG] - Setting package parameters for waterfox
2017-01-13 15:39:41,700 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1':
2017-01-13 15:39:41,710 [DEBUG] - $ErrorActionPreference = 'Stop';

$packageName = 'waterfox'

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName 'Waterfox*'

if ($key.Count -eq 1) {
  $key | % {
  $packageArgs = @{
    packageName    = $packageName
    fileType       = 'EXE'
    silentArgs     = '/S'
    validExitCodes = @(0)
    file           = "$($_.UninstallString)"
  }

    Uninstall-ChocolateyPackage @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)"}
}

2017-01-13 15:39:41,730 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters ''']
2017-01-13 15:39:41,730 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2017-01-13 15:39:41,957 [DEBUG] - Host version is 4.0, PowerShell Version is '4.0' and CLR Version is '4.0.30319.33440'.
2017-01-13 15:39:42,068 [DEBUG] - Loading community extensions
2017-01-13 15:39:42,077 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2017-01-13 15:39:42,077 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2017-01-13 15:39:42,132 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2017-01-13 15:39:42,142 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2017-01-13 15:39:42,151 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2017-01-13 15:39:42,160 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2017-01-13 15:39:42,169 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2017-01-13 15:39:42,206 [DEBUG] - Running 'ChocolateyScriptRunner' for waterfox v50.1.0 with packageScript 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\waterfox', installArguments: '', packageParameters: '',
2017-01-13 15:39:42,215 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1'
2017-01-13 15:39:42,234 [DEBUG] - Running 'Get-UninstallRegistryKey' for 'waterfox' with SoftwareName:'Waterfox*'
2017-01-13 15:39:42,243 [INFO ] - VERBOSE: Retrieving all uninstall registry keys
2017-01-13 15:39:42,326 [DEBUG] - Registry uninstall keys on system: 32
2017-01-13 15:39:42,326 [DEBUG] - Error handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly.
2017-01-13 15:39:42,372 [DEBUG] - Found 1 uninstall registry key(s) with SoftwareName:'Waterfox*'
2017-01-13 15:39:42,419 [DEBUG] - Running Uninstall-ChocolateyPackage -validExitCodes '0' -fileType 'EXE' -silentArgs '/S' -packageName 'waterfox' -file '"C:\Program Files\Waterfox\uninstall\helper.exe"' 
2017-01-13 15:39:42,419 [INFO ] - Uninstalling waterfox...
2017-01-13 15:39:42,419 [INFO ] - 
2017-01-13 15:39:42,474 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -statements '/S ' -exeToRun '"C:\Program Files\Waterfox\uninstall\helper.exe"' 
2017-01-13 15:39:42,474 [DEBUG] - Elevating Permissions and running [""C:\Program Files\Waterfox\uninstall\helper.exe"" /S ]. This may take a while, depending on the statements.
2017-01-13 15:39:42,548 [DEBUG] - Unable to detect whether the file is a text file or not - Exception calling "GetFullPath" with "1" argument(s): "Illegal characters in path."
2017-01-13 15:39:42,585 [WARN ] - WARNING: May not be able to find '"C:\Program Files\Waterfox\uninstall\helper.exe"'. Please use full path for executables.
2017-01-13 15:39:42,667 [DEBUG] - Setting RunAs for elevation
2017-01-13 15:39:42,889 [DEBUG] - Command [""C:\Program Files\Waterfox\uninstall\helper.exe"" /S ] exited with '0'.
2017-01-13 15:39:42,889 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2017-01-13 15:39:42,889 [INFO ] - 0
2017-01-13 15:39:42,889 [INFO ] - waterfox has been uninstalled.
2017-01-13 15:39:42,889 [INFO ] - 
2017-01-13 15:39:42,907 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\waterfox\tools\chocolateyUninstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
2017-01-13 15:39:42,926 [INFO ] -  Running auto uninstaller...
2017-01-13 15:39:42,926 [DEBUG] -   Sleeping for 2 seconds to allow Windows to finish cleaning up.
2017-01-13 15:39:44,116 [DEBUG] -  Preparing uninstall key '"C:\Program Files\Waterfox\uninstall\helper.exe"'
2017-01-13 15:39:44,144 [DEBUG] -  Uninstaller path is 'C:\Program Files\Waterfox\uninstall\helper.exe'
2017-01-13 15:39:44,144 [DEBUG] -  Installer type is 'CustomInstaller'
2017-01-13 15:39:44,144 [DEBUG] -  Setting up uninstall logging directory at c:\choco-cache\waterfox\50.1.0
2017-01-13 15:39:44,144 [DEBUG] -  Args are ''
2017-01-13 15:39:44,144 [WARN ] - 
  Did you know licensed versions of Chocolatey are 95% effective with 
   Automatic Uninstaller due to licensed enhancements and Package 
   Synchronizer?

2017-01-13 15:39:44,190 [INFO ] - For the question below, you have 30 seconds to make a selection.
2017-01-13 15:39:44,190 [INFO ] - Uninstall may not be silent (could not detect). Proceed?
2017-01-13 15:39:44,190 [INFO ] -  1) yes
2017-01-13 15:39:44,190 [INFO ] -  2) no [Default - Press Enter]
2017-01-13 15:39:44,928 [INFO ] - Choice selected: 'yes'
2017-01-13 15:39:44,928 [DEBUG] - Calling command ['"C:\Program Files\Waterfox\uninstall\helper.exe" ']
2017-01-13 15:40:06,393 [DEBUG] - Command ['"C:\Program Files\Waterfox\uninstall\helper.exe" '] exited with '0'
2017-01-13 15:40:06,393 [INFO ] -  Auto uninstaller has successfully uninstalled waterfox or detected previous uninstall.
2017-01-13 15:40:06,393 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2017-01-13 15:40:06,402 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2017-01-13 15:40:06,409 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\.chocolatey\waterfox.50.1.0".
2017-01-13 15:40:06,409 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\waterfox".
2017-01-13 15:40:06,604 [INFO ] -  waterfox has been successfully uninstalled.
2017-01-13 15:40:06,604 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\waterfox\waterfox.nupkg".
2017-01-13 15:40:06,613 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\waterfox\tools\Waterfox 50.1.0 Setup_x64.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2017-01-13 15:40:06,613 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\waterfox\tools\Waterfox 50.1.0 Setup_x64.exe.ignore".
2017-01-13 15:40:06,613 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib\waterfox".
2017-01-13 15:40:06,628 [WARN ] - 
Chocolatey uninstalled 1/1 packages. 0 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2017-01-13 15:40:06,628 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2017-01-13 15:40:06,667 [DEBUG] - Exiting with 0
@ferventcoder
Copy link
Member

That's an interesting thing I haven't seen before.

@AdmiringWorm
Copy link
Member Author

yeah, I've never seen it before either.
At first I though it was me doing something wrong, so I tried running the uninstall script manually which then worked.

@AdmiringWorm
Copy link
Member Author

Looks like this was somehow fixed in v 0.10.4 or 0.10.5, I tried the problematic package (and version) mentioned in this issue using choco 0.10.5 and choco no longer have any problems launching the uninstaller.

Hence I'm closing this.

@ferventcoder
Copy link
Member

Thanks for the followup!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants