Skip to content

Instantly share code, notes, and snippets.

@jberezanski
Created June 17, 2016 23:39
Show Gist options
  • Save jberezanski/dee68713aea76e84f99727201187a6a5 to your computer and use it in GitHub Desktop.
Save jberezanski/dee68713aea76e84f99727201187a6a5 to your computer and use it in GitHub Desktop.
PS C:\> cinst -dvy -source C:\Users\W732\Downloads test-environment
Chocolatey v0.9.10
Chocolatey is running on Windows v 6.1.7601.65536
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 -dvy -source C:\Users\W732\Downloads test-environment
Received arguments: install -dvy -source C:\Users\W732\Downloads test-environment
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'C:\Users\W732\Downloads' evaluated to a 'normal' source type
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\W732\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='C:\Users\W732\Downloads'|SourceType='normal'|Debug='True'|
Verbose='True'|Force='False'|Noop='False'|HelpRequested='False'|
RegularOutput='True'|QuietOutput='False'|PromptForConfirmation='False'|
AcceptLicense='True'|AllowUnofficialBuild='False'|
Input='test-environment'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='test-environment'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.9.10.0'|
Information.ChocolateyProductVersion='0.9.10'|
Information.FullName='choco, Version=0.9.10.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64Bit='False'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Features.AutoUninstaller='True'|
Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='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'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
test-environment
By installing you accept licenses for the packages.
[NuGet] Installing 'test-environment 1.0.0'.
[NuGet] Added file 'chocolateyinstall.ps1' to folder 'test-environment\tools'.
[NuGet] Added file 'test-environment.nuspec' to folder 'test-environment'.
[NuGet] Added file 'test-environment.nupkg' to folder 'test-environment'.
[NuGet] Successfully installed 'test-environment 1.0.0'.
test-environment v1.0.0
Setting installer args and package parameters for test-environment
Contents of 'C:\ProgramData\chocolatey\lib\test-environment\tools\chocolateyinstall.ps1':
Write-Host "TEMP=$env:TEMP"
ls env: | % {Write-Host "$($_.Key)=$($_.Value)" }
$bits = Get-ProcessorBits
Write-Host "Get-ProcessorBits = $bits"
Write-Host "`$bits -eq '64' = $($bits -eq '64')"
Write-Host "`$bits -eq 64 = $($bits -eq 64)"
Write-Host "`$bits -eq '32' = $($bits -eq '32')"
Write-Host "`$bits -eq 32 = $($bits -eq 32)"
Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.T
hread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstalle
r.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\
test-environment\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
Redirecting System.Management.Automation.resources, Version=1.0.0.0, Culture=pl-PL, PublicKeyToken=31bf3856ad364e35, req
uested by ''
Attempting to load assembly System.Management.Automation.resources failed:
Nie można załadować pliku lub zestawu 'System.Management.Automation.resources, Version=5.0.0.0, Culture=pl-PL, PublicKe
yToken=31bf3856ad364e35' lub jednej z jego zależności. Nie można odnaleźć określonego pliku.
Attempting to load assembly System.Management.Automation.resources failed:
Nie można załadować pliku lub zestawu 'System.Management.Automation.resources, Version=4.0.0.0, Culture=pl-PL, PublicKe
yToken=31bf3856ad364e35' lub jednej z jego zależności. Nie można odnaleźć określonego pliku.
Attempting to load assembly System.Management.Automation.resources failed:
Nie można załadować pliku lub zestawu 'System.Management.Automation.resources, Version=3.0.0.0, Culture=pl-PL, PublicKe
yToken=31bf3856ad364e35' lub jednej z jego zależności. Nie można odnaleźć określonego pliku.
Attempting to load assembly System.Management.Automation.resources failed:
Nie można załadować pliku lub zestawu 'System.Management.Automation.resources, Version=1.0.0.0, Culture=pl-PL, PublicKe
yToken=31bf3856ad364e35' lub jednej z jego zależności. Nie można odnaleźć określonego pliku.
Host version is 2.0, PowerShell Version is '2.0' and CLR Version is '4.0.30319.42000'.
VERBOSE: Exporting function 'Format-FileSize'.
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-OSArchitectureWidth'.
VERBOSE: Exporting function 'Get-ToolsLocation'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
VERBOSE: Exporting function 'Get-WebFileName'.
VERBOSE: Exporting function 'Get-WebHeaders'.
VERBOSE: Exporting function 'Install-BinFile'.
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 'Install-Vsix'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Set-PowerShellExitCode'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-BinFile'.
VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
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'.
VERBOSE: Exporting alias 'Get-ProcessorBits'.
VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Remove-BinFile'.
VERBOSE: Exporting alias 'refreshenv'.
VERBOSE: Importing function 'Format-FileSize'.
VERBOSE: Importing function 'Get-ChecksumValid'.
VERBOSE: Importing function 'Get-ChocolateyUnzip'.
VERBOSE: Importing function 'Get-ChocolateyWebFile'.
VERBOSE: Importing function 'Get-EnvironmentVariable'.
VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
VERBOSE: Importing function 'Get-FtpFile'.
VERBOSE: Importing function 'Get-OSArchitectureWidth'.
VERBOSE: Importing function 'Get-ToolsLocation'.
VERBOSE: Importing function 'Get-UACEnabled'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-VirusCheckValid'.
VERBOSE: Importing function 'Get-WebFile'.
VERBOSE: Importing function 'Get-WebFileName'.
VERBOSE: Importing function 'Get-WebHeaders'.
VERBOSE: Importing function 'Install-BinFile'.
VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
VERBOSE: Importing function 'Install-ChocolateyPackage'.
VERBOSE: Importing function 'Install-ChocolateyPath'.
VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Importing function 'Install-ChocolateyShortcut'.
VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
VERBOSE: Importing function 'Install-Vsix'.
VERBOSE: Importing function 'Set-EnvironmentVariable'.
VERBOSE: Importing function 'Set-PowerShellExitCode'.
VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Importing function 'Test-ProcessAdminRights'.
VERBOSE: Importing function 'Uninstall-BinFile'.
VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Importing function 'Update-SessionEnvironment'.
VERBOSE: Importing function 'Write-ChocolateyFailure'.
VERBOSE: Importing function 'Write-ChocolateySuccess'.
VERBOSE: Importing function 'Write-FileUpdateLog'.
VERBOSE: Importing alias 'Add-BinFile'.
VERBOSE: Importing alias 'Generate-BinFile'.
VERBOSE: Importing alias 'Get-InstallRegistryKey'.
VERBOSE: Importing alias 'Get-ProcessorBits'.
VERBOSE: Importing alias 'refreshenv'.
VERBOSE: Importing alias 'Remove-BinFile'.
Running 'ChocolateyScriptRunner' for test-environment v1.0.0 with packageScript 'C:\ProgramData\chocolatey\lib\test-envi
ronment\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\test-environment', installArguments:
'', packageParameters: '',
Running 'C:\ProgramData\chocolatey\lib\test-environment\tools\chocolateyinstall.ps1'
TEMP=C:\Users\W732\AppData\Local\Temp\chocolatey
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\W732\AppData\Roaming
CHOCOLATEY_VERSION=0.9.10.0
CHOCOLATEY_VERSION_PRODUCT=0.9.10
ChocolateyEnvironmentDebug=true
ChocolateyEnvironmentVerbose=true
ChocolateyInstall=C:\ProgramData\chocolatey
ChocolateyLastPathUpdate=Sat Jun 18 01:17:17 2016
chocolateyPackageFolder=C:\ProgramData\chocolatey\lib\test-environment
chocolateyPackageName=test-environment
chocolateyPackageVersion=1.0.0
ChocolateyPowerShellHost=true
chocolateyRequestTimeout=30000
chocolateyResponseTimeout=2700000
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=W732-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\W732
IS_ADMIN=true
IS_PROCESSELEVATED=true
LOCALAPPDATA=C:\Users\W732\AppData\Local
LOGONSERVER=\\W732-PC
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
OS_IS64BIT=false
OS_NAME=Windows 7
OS_PLATFORM=Windows
OS_VERSION=6.1.7601.65536
packageFolder=C:\ProgramData\chocolatey\lib\test-environment
packageName=test-environment
packageVersion=1.0.0
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\
chocolatey\bin;;C:\Program Files\MPC-BE;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PSModulePath=;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Users\W732\Documents\WindowsPowerShell\Modules;
PUBLIC=C:\Users\Public
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\W732\AppData\Local\Temp\chocolatey
TMP=C:\Users\W732\AppData\Local\Temp
USERDOMAIN=W732-PC
USERNAME=W732
USERPROFILE=C:\Users\W732
windir=C:\Windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
Running 'Get-OSArchitectureWidth'
Get-ProcessorBits = 32
$bits -eq '64' = False
$bits -eq 64 = False
$bits -eq '32' = True
$bits -eq 32 = True
ERROR: Cannot bind argument to parameter 'exitCode' because it is null.
at System.Management.Automation.ParameterBinderBase.ValidateNullOrEmptyArgument(CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata, Type argumentType, Object parameterValue, Boolean recurseIntoCollections)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommand
Parameter parameterMetadata, ParameterBindingFlags flags)
at System.Management.Automation.CmdletParameterBinderController.BindParameter(CommandParameterInternal argument, Merg
edCompiledCommandParameter parameter, ParameterBindingFlags flags)
at System.Management.Automation.CmdletParameterBinderController.BindParameter(UInt32 parameterSets, CommandParameterI
nternal argument, MergedCompiledCommandParameter parameter, ParameterBindingFlags flags)
at System.Management.Automation.ParameterBinderController.BindPositionalParametersInSet(UInt32 validParameterSets, Di
ctionary`2 nextPositionalParameters, CommandParameterInternal argument, ParameterBindingFlags flags, ParameterBindingExc
eption& bindingException)
at System.Management.Automation.ParameterBinderController.BindPositionalParameters(Collection`1 unboundArguments, UIn
t32 validParameterSets, UInt32 defaultParameterSet, Boolean ignoreArgumentsThatLookLikeParameters, ParameterBindingExcep
tion& outgoingBindingException)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 ar
guments)
at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
at System.Management.Automation.CommandProcessor.BindCommandLineParameters(CommandParameterInternal[] parameters)
at System.Management.Automation.CommandProcessor.Prepare(CommandParameterInternal[] parameters)
at System.Management.Automation.CommandProcessorBase.DoPrepare(CommandParameterInternal[] parameters)
at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorR
esults, Boolean enumerate)
Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Th
read]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller
.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\t
est-environment\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
Calling command ['"C:\Windows\System32\shutdown.exe" /a']
Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
Capturing package files in 'C:\ProgramData\chocolatey\lib\test-environment'
Found 'C:\ProgramData\chocolatey\lib\test-environment\.chocolateyPending'
with checksum '9A5B9E18F11DF75BD5D7EE0836D19C8E'
Found 'C:\ProgramData\chocolatey\lib\test-environment\test-environment.nupkg'
with checksum '01742629D479A4719510A9DB1BAF7449'
Found 'C:\ProgramData\chocolatey\lib\test-environment\test-environment.nuspec'
with checksum '03D31D07F25723E8E992055B28531900'
Found 'C:\ProgramData\chocolatey\lib\test-environment\tools\chocolateyinstall.ps1'
with checksum '5E27C1DEA20670B5F64C38AAC23DCC71'
Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0".
Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0\.files.update"
to "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0\.files".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test-environment.1.0.0\.pin".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The install of test-environment was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\test-environment\tools\chocolateyinstall.ps1'.
See log for details.
Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
Moving 'C:\ProgramData\chocolatey\lib\test-environment'
to 'C:\ProgramData\chocolatey\lib-bad\test-environment'
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- test-environment (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\test-environment\tools\chocolateyin
stall.ps1'.
See log for details.
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment