Skip to content

Instantly share code, notes, and snippets.

@dcjulian29
Created April 17, 2015 15:26
Show Gist options
  • Save dcjulian29/e38de448ce54af997137 to your computer and use it in GitHub Desktop.
Save dcjulian29/e38de448ce54af997137 to your computer and use it in GitHub Desktop.
Console Output of "unsuccessful" package install
PS C:\Windows\system32> choco install mysettings-ntfs -y -debug -verbose
Chocolatey v0.9.9.4
Chocolatey is running on Windows v 10.0.9926.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install mysettings-ntfs -y -debug -verbose
Received arguments: install mysettings-ntfs -y -debug -verbose
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.
Configuration: CommandName='install'|
CacheLocation='C:\Users\lab\AppData\Local\Temp'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://www.myget.org/F/dcjulian29-chocolatey'|Debug='True'|
Verbose='True'|Force='False'|Noop='False'|HelpRequested='False'|
RegularOutput='True'|PromptForConfirmation='False'|
AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='mysettings-ntfs'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='mysettings-ntfs'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|ForceDependencies='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.9926.0'|
Information.PlatformName='Windows'|
Information.ChocolateyVersion='0.9.9.4'|
Information.ChocolateyProductVersion='0.9.9.4'|
Information.FullName='choco, Version=0.9.9.4, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
FeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
mysettings-ntfs
By installing you accept licenses for the packages.
Installing 'mysettings-ntfs 2014.5.17'.
Added file 'chocolateyInstall.ps1' to folder 'mysettings-ntfs\tools'.
Added file 'registry.reg' to folder 'mysettings-ntfs\tools'.
Added file 'mysettings-ntfs.nupkg' to folder 'mysettings-ntfs'.
Successfully installed 'mysettings-ntfs 2014.5.17'.
mysettings-ntfs v2014.5.17
Contents of 'C:\ProgramData\chocolatey\lib\mysettings-ntfs\tools\chocolateyInstall.ps1':
$packageName = "mysettings-ntfs"
$packageDir = "$(Split-Path -parent $MyInvocation.MyCommand.Path)"
$LastExitCode
if ($psISE) {
Import-Module -name "$env:ChocolateyInstall\chocolateyinstall\helpers\chocolateyInstaller.psm1"
}
$LastExitCode
$cmd = "reg.exe import $packageDir\registry.reg"
$LastExitCode
if (Get-ProcessorBits -eq 64) {
$cmd = "$cmd /reg:64"
}
$LastExitCode
Write-Output "Executing: $cmd"
$LastExitCode
if (Test-ProcessAdminRights) {
$LastExitCode
Invoke-Expression $cmd
$LastExitCode
} else {
Start-ChocolateyProcessAsAdmin "$cmd"
}
$LastExitCode
Write-Output "You need to reboot to complete the action..."
$LastExitCode
Calling command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System
.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -nam
e 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageS
cript 'C:\ProgramData\chocolatey\lib\mysettings-ntfs\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"']
DEBUG: Posh version is 5.0.9926.6
VERBOSE: Exporting function 'Generate-BinFile'.
VERBOSE: Exporting function 'Get-BinRoot'.
VERBOSE: Exporting function 'Get-ChecksumValid'.
VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
VERBOSE: Exporting function 'Get-EnvironmentVariable'.
VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
VERBOSE: Exporting function 'Get-FtpFile'.
VERBOSE: Exporting function 'Get-ProcessorBits'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
VERBOSE: Exporting function 'Get-WebHeaders'.
VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPath'.
VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Remove-BinFile'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
VERBOSE: Exporting function 'UnInstall-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Update-SessionEnvironment'.
VERBOSE: Exporting function 'Write-ChocolateyFailure'.
VERBOSE: Exporting function 'Write-ChocolateySuccess'.
VERBOSE: Exporting function 'Write-FileUpdateLog'.
DEBUG: Loading community extensions
WARNING: The names of some imported commands from the module 'chocolateyInstaller' include unapproved verbs that might
make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the
Verbose parameter. For a list of approved verbs, type Get-Verb.
DEBUG: Running 'Get-ProcessorBits'
Executing: reg.exe import C:\ProgramData\chocolatey\lib\mysettings-ntfs\tools\registry.reg /reg:64
The operation completed successfully.
DEBUG: Test-ProcessAdminRights: returning True
0
0
Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threadi
ng.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\Pr
ogramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C
:\ProgramData\chocolatey\lib\mysettings-ntfs\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''"'] exited with '0'
You need to reboot to complete the action...
0
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\mysettings-ntfs.2014.5.17\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\mysettings-ntfs.2014.5.17\.pin".
mysettings-ntfs install not successful.
Error while running 'C:\ProgramData\chocolatey\lib\mysettings-ntfs\tools\chocolateyInstall.ps1'.
See log for details.
Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
Moving 'C:\ProgramData\chocolatey\lib\mysettings-ntfs'
to 'C:\ProgramData\chocolatey\lib-bad\mysettings-ntfs'
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details.
Failures:
- mysettings-ntfs
Exiting with 1
PS C:\Windows\system32>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment