Skip to content

Instantly share code, notes, and snippets.

@dcjulian29
Created March 7, 2017 15:25
Show Gist options
  • Save dcjulian29/093d69c2ce3ef05df8afa02b8af336dc to your computer and use it in GitHub Desktop.
Save dcjulian29/093d69c2ce3ef05df8afa02b8af336dc to your computer and use it in GitHub Desktop.
PS C:\Windows\system32> choco install executor -y -dv
Chocolatey v0.10.3
Chocolatey is running on Windows v 10.0.14393.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 executor -y -dv
Received arguments: install executor -y -dv
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 'https://www.myget.org/F/dcjulian29-chocolatey;https://chocolatey.org/api/v2' 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\julian\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://www.myget.org/F/dcjulian29-chocolatey;https://chocolatey.org/api/v2'|
SourceType='normal'|Debug='True'|Verbose='True'|Force='False'|
Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='executor'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='executor'|
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='10.0.14393.0'|
Information.PlatformName='Windows'|
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='False'|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'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
executor
By installing you accept licenses for the packages.
[NuGet] Installing 'executor 0.99.12.2'.
[NuGet] Added file 'chocolateyInstall.ps1' to folder 'executor\tools'.
[NuGet] Added file 'chocolateyUninstall.ps1' to folder 'executor\tools'.
[NuGet] Added file 'executor-make-master.cmd' to folder 'executor\tools'.
[NuGet] Added file 'executor-run.cmd' to folder 'executor\tools'.
[NuGet] Added file 'executor.nuspec' to folder 'executor'.
[NuGet] Added file 'executor.nupkg' to folder 'executor'.
[NuGet] Successfully installed 'executor 0.99.12.2'.
executor v0.99.12.2
executor package files install completed. Performing other installation steps.
Setting installer args for executor
Setting package parameters for executor
Contents of 'C:\ProgramData\chocolatey\lib\executor\tools\chocolateyInstall.ps1':
$packageName = "executor"
$url = "http://www.1space.dk/executor/Executor.zip"
$appDir = "$($env:SYSTEMDRIVE)\tools\$($packageName)"
$downloadPath = "$env:TEMP\$packageName"
if (Test-Path $downloadPath) {
Remove-Item $downloadPath -Recurse -Force | Out-Null
}
New-Item -Type Directory -Path $downloadPath | Out-Null
Download-File $url "$downloadPath\$packageName.zip"
if (Test-Path $appDir) {
Write-Output "Removing previous version of package..."
Remove-Item "$($appDir)\*" -Recurse -Force
}
New-Item -Type Directory -Path $appDir | Out-Null
Unzip-File "$downloadPath\$packageName.zip" "$appdir"
Copy-Item -Path "$PSScriptRoot\*.cmd" $appDir
$location = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"
$key = Get-Item $location
if ($key.GetValue("Executor", $null) -ne $null) {
Remove-ItemProperty -Path $location -Name "Executor"
}
New-ItemProperty -Path $location -Name Executor `
-Value "$env:SYSTEMDRIVE\Tools\executor\executor-run.cmd"
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\executor\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters ''']
Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
Host version is 5.1.14393.0, PowerShell Version is '5.1.14393.0' and CLR Version is '4.0.30319.42000'.
Loading community extensions
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-AvailableDriveLetter'.
VERBOSE: Importing function 'Get-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-WebContent'.
VERBOSE: Importing function 'Register-Application'.
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 function 'Write-FunctionCallLogMessage'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Exporting alias 'Get-ProcessorBits'.
VERBOSE: Exporting alias 'Get-OSBitness'.
VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
VERBOSE: Exporting alias 'Remove-BinFile'.
VERBOSE: Exporting alias 'refreshenv'.
VERBOSE: Importing function 'Format-FileSize'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-AvailableDriveLetter'.
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-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-ToolsLocation'.
VERBOSE: Importing function 'Get-UACEnabled'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-VirusCheckValid'.
VERBOSE: Importing function 'Get-WebContent'.
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 'Register-Application'.
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 function 'Write-FunctionCallLogMessage'.
VERBOSE: Importing alias 'Add-BinFile'.
VERBOSE: Importing alias 'Generate-BinFile'.
VERBOSE: Importing alias 'Get-InstallRegistryKey'.
VERBOSE: Importing alias 'Get-OSBitness'.
VERBOSE: Importing alias 'Get-ProcessorBits'.
VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
VERBOSE: Importing alias 'refreshenv'.
VERBOSE: Importing alias 'Remove-BinFile'.
VERBOSE: Importing alias 'Start-ChocolateyProcess'.
Running 'ChocolateyScriptRunner' for executor v0.99.12.2 with packageScript 'C:\ProgramData\chocolatey\lib\executor\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\executor', installArguments: '', packageParameters: '',
Running 'C:\ProgramData\chocolatey\lib\executor\tools\chocolateyInstall.ps1'
VERBOSE: Exporting function 'Copy-File'.
VERBOSE: Exporting function 'Download-File'.
VERBOSE: Exporting function 'Unzip-File'.
VERBOSE: Exporting function 'Get-FullFilePath'.
VERBOSE: Exporting function 'Get-FullDirectoryPath'.
VERBOSE: Exporting function 'Reset-Path'.
VERBOSE: Exporting function 'Find-ProgramFiles'.
VERBOSE: Exporting function 'First-Path'.
VERBOSE: Exporting function 'Purge-Files'.
VERBOSE: Exporting function 'Get-Sha1'.
VERBOSE: Exporting function 'Get-Sha256'.
VERBOSE: Exporting function 'Get-Md5'.
VERBOSE: Exporting alias 'sha1'.
VERBOSE: Exporting alias 'sha256'.
VERBOSE: Exporting alias 'md5'.
VERBOSE: Downloading --> http://www.1space.dk/executor/Executor.zip
VERBOSE: Total Length: 954392 bytes
Downloading from www.1space.dk: 0% @ 0.00 MB/s
Progress: 100% - To C:\Users\julian\AppData\Local\Temp\chocolatey\executor\executor.zip VERBOSE: Saved --> C:\Users\julian\AppData\Local\Temp\chocolatey\executor\executor.zip
VERBOSE: Source --> C:\Users\julian\AppData\Local\Temp\chocolatey\executor\executor.zip
VERBOSE: Destination --> C:\tools\executor\
@{Executor=C:\Tools\executor\executor-run.cmd; PSPath=Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run; PSParentPath=Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion; PSChildName=Run; PSDrive=HKCU; PSProvider=Microsoft.PowerShell.Core\Registry}
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\executor\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
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\executor'
Found 'C:\ProgramData\chocolatey\lib\executor\executor.nupkg'
with checksum 'C76780EF38BC550B89E558604F0D8FEA'
Found 'C:\ProgramData\chocolatey\lib\executor\executor.nuspec'
with checksum '20414C0DA1EA757596450597DFBE4DAE'
Found 'C:\ProgramData\chocolatey\lib\executor\tools\chocolateyInstall.ps1'
with checksum 'EF4D11981C36DCEA482DF1F223B5BA96'
Found 'C:\ProgramData\chocolatey\lib\executor\tools\chocolateyUninstall.ps1'
with checksum 'FF0B5003AA4C900F2D03215A0096CC5D'
Found 'C:\ProgramData\chocolatey\lib\executor\tools\executor-make-master.cmd'
with checksum '84907DFA746A0C30AA16C7706CA32B2E'
Found 'C:\ProgramData\chocolatey\lib\executor\tools\executor-run.cmd'
with checksum '2A52E8F3A92A3BAEF135AB64CECBB6B3'
Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2".
Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2\.files.update"
to "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2\.files".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\executor.0.99.12.2\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\executor".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
Attempting to delete file "C:\ProgramData\chocolatey\lib\executor\.chocolateyPending".
The install of executor was successful.
Software install location not explicitly set, could be in package or
default install location if installer.
Attempting to delete file "C:\Users\julian\AppData\Local\NuGet\Cache\executor.0.99.12.2.nupkg".
Chocolatey installed 1/1 packages. 0 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
You use Chocolatey? You are amazing! Are you ready to take the next
step and look even smarter with more awesome features?
https://chocolatey.org/compare
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment