Closed General-Fault closed 5 years ago
Get-Location is used in a few other helper functions. Specifically:
However in these instances, because of the way that the working directory is used, it may be appropriate to assume that the working directory has been set. Would it be better to use a temp directory if it has not been set? In Get-ChocolateyUnzip however, the unzip "destination" is set independently of the working directory, and I don't see any other need for it. As a test, I commented out the line that sets the Process.StartInfo.WorkingDirectory (Get-ChocolateyUnzip.ps1:187) and found that the unzip process completes as expected.
With more logging I found that the working directory was not null, but rather was a UNC path (set by MDT). Updated title, description and log with this information.
@General-Fault Thanks for logging the issue! This is actually something we've seen in other places. I think this is related to #1216
if ((Get-Location) -eq $null)
{
Write-Warning "Working Directory not set. Setting to '$env:ChocolateyInstall'"
Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781
}
if ([string]::IsNullOrEmpty((Get-Location)))
{
Write-Warning "Working Directory is an empty string. Setting to '$env:ChocolateyInstall'"
Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781
}
Write-Debug "Working Directory is now '$(Get-Location)'"
Note: here's the only message that is produced.
2019-03-28 15:26:52,086 3528 [DEBUG] - Working Directory is now 'Microsoft.PowerShell.Core\FileSystem::\\dev-build\chocolatey-packages'
Looks like you have your shell (powershell.exe) set to a file share.
Which you mentioned already, just want to be sure I have all of the details outlined.
Weird - I can't seem to get this to actually trigger on a normal UNC path.
Ignore that comment - determined my problem and revised my testing.
This is fixed for v0.10.14.
The bugfix changes from this issue are causing further problems with packages which use Start-ChocolateyProcessAsAdmin
where the new working directory conditions are causing the installation script to fall back to the TEMP folder. This is a problem when the working directory contains batch files which should be executed, where the path isn't fully qualified.
The package in particular is teamcityagent where the installation script has the following lines at the end
# TODO: catch failure and call chocolateyUninstall.ps1 or some other cleanup
Set-Location $agentDir\bin
Start-ChocolateyProcessAsAdmin "Start-Process -FilePath .\service.install.bat -Wait"
Sleep 2
Start-ChocolateyProcessAsAdmin "Start-Process -FilePath .\service.start.bat -Wait"
The TeamCity agent is extracted to C:\buildAgent, and service.install.bat lives in C:\buildAgent\bin. During execution I'd expect Start-ChocolateyProcessAsAdmin
to resolve the path as what is set via Set-Location
, however the log shows that the new code is being hit and the path is set to TEMP
Unable to use current location for Working Directory. Using Cache Location instead
I've found one workaround is to update the package installation code to the following:
# TODO: catch failure and call chocolateyUninstall.ps1 or some other cleanup
$workingDir = Join-Path $agentDir "bin"
Start-ChocolateyProcessAsAdmin "Set-Location $workingDir; Start-Process -FilePath .\service.install.bat -Wait"
Sleep 2
Start-ChocolateyProcessAsAdmin "Set-Location $workingDir; Start-Process -FilePath .\service.start.bat -Wait"
using the -WorkingDirectory
parameter has the same problem.
If this is intended behaviour this needs to be marked as a breaking change in v0.10.14 as this is not backwards compatible.
This had additional fixes for 0.10.16 as #2051. Thanks for that @ifreislich!
@ferventcoder any word on a 0.10.16-beta release? I just smashed headlong into this problem and I spent a couple hours fighting with it assuming that it was my package invocation arguments or something else in my environment, never once thinking it was a bug in Chocolatey's privilege escalation as that runs under the covers and the package was reporting it grabbed all the files correctly.
@dragon788 hey man, long time no talk!
I think we can set up for a beta for sure.
It's rolling through moderation right now, but here you go - https://chocolatey.org/packages/chocolatey/0.10.16-beta-20200806
Great, thanks @ferventcoder !
I tried this out and I'm still getting some weirdness, but it might just be the sql-server-2019 install script giving me heartburn and not necessarily this bug.
amazon-ebs: Chocolatey v0.10.15
amazon-ebs: Upgrading the following packages:
amazon-ebs: chocolatey
amazon-ebs: By upgrading you accept licenses for the packages.
amazon-ebs:
amazon-ebs: You have chocolatey v0.10.15 installed. Version 0.10.16-beta-20200806 is available based on your source(s).
amazon-ebs: Progress: Downloading chocolatey 0.10.16-beta-20200806... 100%
amazon-ebs:
amazon-ebs: chocolatey v0.10.16-beta-20200806 [Approved]
amazon-ebs: chocolatey package files upgrade completed. Performing other installation steps.
amazon-ebs: Creating ChocolateyInstall as an environment variable (targeting 'Machine')
amazon-ebs: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
amazon-ebs: WARNING: It's very likely you will need to close and reopen your shell
amazon-ebs: before you can use choco.
amazon-ebs: Restricting write permissions to Administrators
amazon-ebs: We are setting up the Chocolatey package repository.
amazon-ebs: The packages themselves go to 'C:\ProgramData\chocolatey\lib'
amazon-ebs: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
amazon-ebs: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
amazon-ebs: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
amazon-ebs:
amazon-ebs: Creating Chocolatey folders if they do not already exist.
amazon-ebs:
amazon-ebs: WARNING: You can safely ignore errors related to missing log files when
amazon-ebs: upgrading from a version of Chocolatey less than 0.9.9.
amazon-ebs: 'Batch file could not be found' is also safe to ignore.
amazon-ebs: 'The system cannot find the file specified' - also safe.
amazon-ebs: WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
amazon-ebs: Chocolatey (choco.exe) is now ready.
amazon-ebs: You can call choco from anywhere, command line or powershell by typing choco.
amazon-ebs: Run choco /? for a list of functions.
amazon-ebs: You may need to shut down and restart powershell and/or consoles
amazon-ebs: first prior to using choco.
amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
amazon-ebs: The upgrade of chocolatey was successful.
amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: default install location if installer.
amazon-ebs:
amazon-ebs: Chocolatey upgraded 1/1 packages.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs: Chocolatey v0.10.16-beta
amazon-ebs: Installing the following packages:
amazon-ebs: sql-server-2019
amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: Progress: Downloading sql-server-2019 15.0.2000.20200604... 100%
amazon-ebs:
amazon-ebs: sql-server-2019 v15.0.2000.20200604 [Approved]
amazon-ebs: sql-server-2019 package files install completed. Performing other installation steps.
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Progress: 100% - 1/1 completedInstalling sql-server-2019...
amazon-ebs: WARNING: Unable to set the working directory for installer to location of ':\setup.exe'
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Progress: 100% - 1/1 completedERROR: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form."
amazon-ebs: The install of sql-server-2019 was NOT successful.
amazon-ebs: Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
amazon-ebs: See log for details.
amazon-ebs:
amazon-ebs: Chocolatey installed 0/1 packages. 1 packages failed.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs:
amazon-ebs: Failures
amazon-ebs: - sql-server-2019 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
amazon-ebs: See log for details.
I had another run with --debug
and --verbose
turned on and it appears there is still a bug or there is a glitch in the package and how it resolves the path.
The important bit seems to be here.
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Mount-DiskImage -ImagePath $fileFullPath -StorageType ISO -PassThru
amazon-ebs: Progress: 100% - 1/1 completedRunning Install-ChocolateyInstallPackage -silentArgs '/IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator"' -packageName 'sql-server-2019' -validExitCodes '0 3010' -fileType 'EXE' -file ':\setup.exe'
amazon-ebs: Running Get-ProcessorBits -compare '32'
amazon-ebs: Installing sql-server-2019...
amazon-ebs: WARNING: Unable to set the working directory for installer to location of ':\setup.exe'
amazon-ebs: Ensuring 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools' exists
amazon-ebs: Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 3010' -workingDirectory 'C:\Users\Administrator\AppData\Local\Temp\chocolatey' -statements '/IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator" ' -exeToRun ':\setup.exe'
amazon-ebs: Test-ProcessAdminRights: returning True
amazon-ebs: Elevating permissions and running [":\setup.exe" /IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator" ]. This may take a while, depending on the statements.
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Progress: 100% - 1/1 completedERROR: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form."
amazon-ebs: at Start-ChocolateyProcessAsAdmin, C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1: line 197
amazon-ebs: at Install-ChocolateyInstallPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyInstallPackage.ps1: line 335
This is the complete log from choco upgrade and refreshenv to installing the package. I'm going to try upgrading chocolatey in an earlier step and reboot and see whether that makes any difference due to fresh loading of DLLs or clearing system state in $TEMP.
amazon-ebs: Chocolatey v0.10.15
amazon-ebs: Upgrading the following packages:
amazon-ebs: chocolatey
amazon-ebs: By upgrading you accept licenses for the packages.
amazon-ebs:
amazon-ebs: You have chocolatey v0.10.15 installed. Version 0.10.16-beta-20200806 is available based on your source(s).
amazon-ebs: Progress: Downloading chocolatey 0.10.16-beta-20200806... 100%
amazon-ebs:
amazon-ebs: chocolatey v0.10.16-beta-20200806 [Approved]
amazon-ebs: chocolatey package files upgrade completed. Performing other installation steps.
amazon-ebs: Creating ChocolateyInstall as an environment variable (targeting 'Machine')
amazon-ebs: Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
amazon-ebs: WARNING: It's very likely you will need to close and reopen your shell
amazon-ebs: before you can use choco.
amazon-ebs: Restricting write permissions to Administrators
amazon-ebs: We are setting up the Chocolatey package repository.
amazon-ebs: The packages themselves go to 'C:\ProgramData\chocolatey\lib'
amazon-ebs: (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
amazon-ebs: A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
amazon-ebs: and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.
amazon-ebs:
amazon-ebs: Creating Chocolatey folders if they do not already exist.
amazon-ebs:
amazon-ebs: WARNING: You can safely ignore errors related to missing log files when
amazon-ebs: upgrading from a version of Chocolatey less than 0.9.9.
amazon-ebs: 'Batch file could not be found' is also safe to ignore.
amazon-ebs: 'The system cannot find the file specified' - also safe.
amazon-ebs: WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
amazon-ebs: Chocolatey (choco.exe) is now ready.
amazon-ebs: You can call choco from anywhere, command line or powershell by typing choco.
amazon-ebs: Run choco /? for a list of functions.
amazon-ebs: You may need to shut down and restart powershell and/or consoles
amazon-ebs: first prior to using choco.
amazon-ebs: Environment Vars (like PATH) have changed. Close/reopen your shell to
amazon-ebs: see the changes (or in powershell/cmd.exe just type `refreshenv`).
amazon-ebs: The upgrade of chocolatey was successful.
amazon-ebs: Software install location not explicitly set, could be in package or
amazon-ebs: default install location if installer.
amazon-ebs:
amazon-ebs: Chocolatey upgraded 1/1 packages.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs: Chocolatey v0.10.16-beta
amazon-ebs: Chocolatey is running on Windows v 10.0.14393.0
amazon-ebs: Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
amazon-ebs: Command line: "C:\ProgramData\chocolatey\choco.exe" install sql-server-2019 --debug --verbose "--params='/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot'"
amazon-ebs: Received arguments: install sql-server-2019 --debug --verbose --params='/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot'
amazon-ebs: RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
amazon-ebs: Sending message 'PreRunMessage' out if there are subscribers...
amazon-ebs: [Pending] Removing all pending packages that should not be considered installed...
amazon-ebs: Performing validation checks.
amazon-ebs: Global Configuration Validation Checks:
amazon-ebs: - Package Exit Code / Exit On Reboot = Checked
amazon-ebs: System State Validation Checks:
amazon-ebs: Reboot Requirement Checks:
amazon-ebs: - Pending Computer Rename = Checked
amazon-ebs: - Pending Component Based Servicing = Checked
amazon-ebs: - Pending Windows Auto Update = Checked
amazon-ebs: - Pending File Rename Operations = Checked
amazon-ebs: - Pending Windows Package Installer = Checked
amazon-ebs: - Pending Windows Package Installer SysWow64 = Checked
amazon-ebs: The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
amazon-ebs:
amazon-ebs: NOTE: Hiding sensitive configuration data! Please double and triple
amazon-ebs: check to be sure no sensitive data is shown, especially if copying
amazon-ebs: output to a gist for review.
amazon-ebs: Configuration: CommandName='install'|
amazon-ebs: CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'|
amazon-ebs: ContainsLegacyPackageInstalls='True'|
amazon-ebs: CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
amazon-ebs: Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
amazon-ebs: Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
amazon-ebs: HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
amazon-ebs: QuietOutput='False'|PromptForConfirmation='False'|
amazon-ebs: AcceptLicense='False'|
amazon-ebs: AllowUnofficialBuild='False'|Input='sql-server-2019'|
amazon-ebs: AllVersions='False'|SkipPackageInstallProvider='False'|
amazon-ebs: PackageNames='sql-server-2019'|Prerelease='False'|ForceX86='False'|
amazon-ebs: OverrideArguments='False'|NotSilent='False'|
amazon-ebs: PackageParameters='/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot'|
amazon-ebs:
amazon-ebs: ApplyPackageParametersToDependencies='False'|
amazon-ebs: ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
amazon-ebs: AllowMultipleVersions='False'|AllowDowngrade='False'|
amazon-ebs: ForceDependencies='False'|Information.PlatformType='Windows'|
amazon-ebs: Information.PlatformVersion='10.0.14393.0'|
amazon-ebs: Information.PlatformName='Windows Server 2016'|
amazon-ebs: Information.ChocolateyVersion='0.10.16.0'|
amazon-ebs: Information.ChocolateyProductVersion='0.10.16-beta'|
amazon-ebs: Information.FullName='choco, Version=0.10.16.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
amazon-ebs:
amazon-ebs: Information.Is64BitOperatingSystem='True'|
amazon-ebs: Information.Is64BitProcess='True'|Information.IsInteractive='False'|
amazon-ebs: Information.UserName='Administrator'|
amazon-ebs: Information.UserDomainName='EC2AMAZ-BI023KU'|
amazon-ebs: Information.IsUserAdministrator='True'|
amazon-ebs: Information.IsUserSystemAccount='False'|
amazon-ebs: Information.IsUserRemoteDesktop='False'|
amazon-ebs: Information.IsUserRemote='True'|
amazon-ebs: Information.IsProcessElevated='True'|
amazon-ebs: Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
amazon-ebs: Information.CurrentDirectory='C:\Users\Administrator'|
amazon-ebs: Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
amazon-ebs: Features.AllowEmptyChecksums='False'|
amazon-ebs: Features.AllowEmptyChecksumsSecure='True'|
amazon-ebs: Features.FailOnAutoUninstaller='False'|
amazon-ebs: Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
amazon-ebs: Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
amazon-ebs: Features.VirusCheck='False'|
amazon-ebs: Features.FailOnInvalidOrMissingLicense='False'|
amazon-ebs: Features.IgnoreInvalidOptionsSwitches='True'|
amazon-ebs: Features.UsePackageExitCodes='True'|
amazon-ebs: Features.UseEnhancedExitCodes='False'|
amazon-ebs: Features.UseFipsCompliantChecksums='False'|
amazon-ebs: Features.ShowNonElevatedWarnings='True'|
amazon-ebs: Features.ShowDownloadProgress='True'|
amazon-ebs: Features.StopOnFirstPackageFailure='False'|
amazon-ebs: Features.UseRememberedArgumentsForUpgrades='False'|
amazon-ebs: Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
amazon-ebs: Features.SkipPackageUpgradesWhenNotInstalled='False'|
amazon-ebs: Features.RemovePackageInformationOnUninstall='False'|
amazon-ebs: Features.ExitOnRebootDetected='False'|
amazon-ebs: Features.LogValidationResultsOnWarnings='True'|
amazon-ebs: Features.UsePackageRepositoryOptimizations='True'|
amazon-ebs: Features.ScriptsCheckLastExitCode='False'|
amazon-ebs: ListCommand.LocalOnly='False'|
amazon-ebs: ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
amazon-ebs: ListCommand.PageSize='25'|ListCommand.Exact='False'|
amazon-ebs: ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
amazon-ebs: ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
amazon-ebs: ListCommand.ApprovedOnly='False'|
amazon-ebs: ListCommand.DownloadCacheAvailable='False'|
amazon-ebs: ListCommand.NotBroken='False'|
amazon-ebs: ListCommand.IncludeVersionOverrides='False'|
amazon-ebs: UpgradeCommand.FailOnUnfound='False'|
amazon-ebs: UpgradeCommand.FailOnNotInstalled='False'|
amazon-ebs: UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
amazon-ebs: UpgradeCommand.ExcludePrerelease='False'|
amazon-ebs: NewCommand.AutomaticPackage='False'|
amazon-ebs: NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
amazon-ebs: SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
amazon-ebs: SourceCommand.AllowSelfService='False'|
amazon-ebs: SourceCommand.VisibleToAdminsOnly='False'|
amazon-ebs: FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
amazon-ebs: ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'|
amazon-ebs: OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
amazon-ebs: _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
amazon-ebs: Installing the following packages:
amazon-ebs: sql-server-2019
amazon-ebs: By installing you accept licenses for the packages.
amazon-ebs: Using 'https://chocolatey.org/api/v2/'.
amazon-ebs: - Supports prereleases? 'True'.
amazon-ebs: - Is ServiceBased? 'True'.
amazon-ebs: Package 'sql-server-2019' found on source 'https://chocolatey.org/api/v2/'
amazon-ebs: [NuGet] Attempting to resolve dependency 'chocolatey-core.extension (� 1.3.3)'.
amazon-ebs: Progress: Downloading sql-server-2019 15.0.2000.20200604... 100%
amazon-ebs: [NuGet] Installing 'sql-server-2019 15.0.2000.20200604'.
amazon-ebs: [NuGet] Added file '.skipAutoUninstall' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'chocolateybeforemodify.ps1' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'chocolateyinstall.ps1' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'chocolateyuninstall.ps1' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'ConfigurationFile.ini' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'Get-PendingReboot.ps1' to folder 'sql-server-2019\tools'.
amazon-ebs: [NuGet] Added file 'sql-server-2019.nupkg' to folder 'sql-server-2019'.
amazon-ebs: [NuGet] Added file 'sql-server-2019.nuspec' to folder 'sql-server-2019'.
amazon-ebs: [NuGet] Successfully installed 'sql-server-2019 15.0.2000.20200604'.
amazon-ebs:
amazon-ebs: sql-server-2019 v15.0.2000.20200604 [Approved]
amazon-ebs: sql-server-2019 package files install completed. Performing other installation steps.
amazon-ebs: Setting installer args for sql-server-2019
amazon-ebs: Setting package parameters for sql-server-2019
amazon-ebs: Contents of 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1':
amazon-ebs: $ErrorActionPreference = 'Stop'; # stop on all errors
amazon-ebs: $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
amazon-ebs: $url = 'https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLServer2019-x64-ENU-Dev.iso'
amazon-ebs:
amazon-ebs: . $toolsDir\Get-PendingReboot.ps1
amazon-ebs:
amazon-ebs: if ([Version] (Get-CimInstance Win32_OperatingSystem).Version -lt [version] "10.0.0.0") {
amazon-ebs: Write-Error "SQL Server 2019 requires a minimum of Windows 10 or Windows Server 2016"
amazon-ebs: }
amazon-ebs:
amazon-ebs: $pp = Get-PackageParameters
amazon-ebs:
amazon-ebs: if ( (!$pp['IGNOREPENDINGREBOOT']) -and (Get-PendingReboot).RebootPending) {
amazon-ebs: Write-Error "A system reboot is pending. You must restart Windows first before installing SQL Server"
amazon-ebs: } else {
amazon-ebs: if ($pp['IGNOREPENDINGREBOOT']) {
amazon-ebs: $pp.Remove('IGNOREPENDINGREBOOT')
amazon-ebs: if(!$pp['ACTION']) {
amazon-ebs: $pp['ACTION']='Install'
amazon-ebs: }
amazon-ebs: if(!$pp['SkipRules']) {
amazon-ebs: $pp['SkipRules']='RebootRequiredCheck'
amazon-ebs: }
amazon-ebs: }
amazon-ebs: }
amazon-ebs:
amazon-ebs: # Default to use supplied configuration file and current user as sysadmin
amazon-ebs: if (!$pp['CONFIGURATIONFILE']) {
amazon-ebs: $pp['CONFIGURATIONFILE'] = "$toolsDir\ConfigurationFile.ini"
amazon-ebs: }
amazon-ebs:
amazon-ebs: if (!$pp['SQLSYSADMINACCOUNTS']) {
amazon-ebs: $pp['SQLSYSADMINACCOUNTS'] = "$env:USERDOMAIN\$env:USERNAME"
amazon-ebs: }
amazon-ebs:
amazon-ebs: $packageArgs = @{
amazon-ebs: packageName = $env:ChocolateyPackageName
amazon-ebs:
amazon-ebs: fileType = 'EXE'
amazon-ebs: url = $url
amazon-ebs:
amazon-ebs: softwareName = 'Microsoft SQL Server 2019 (64-bit)'
amazon-ebs: checksum = '575D5F32BCE655CF6FA3C3A0F5A525ADFCAB3A5469107EF8F05BF92C43741218'
amazon-ebs: checksumType = 'sha256'
amazon-ebs:
amazon-ebs: silentArgs = "/IAcceptSqlServerLicenseTerms /Q "
amazon-ebs: validExitCodes= @(0, 3010)
amazon-ebs: }
amazon-ebs:
amazon-ebs: # Download if we don't have an existing .iso
amazon-ebs: if (!$pp['IsoPath']) {
amazon-ebs:
amazon-ebs: $chocTempDir = $env:TEMP
amazon-ebs: $tempDir = Join-Path $chocTempDir "$($env:chocolateyPackageName)"
amazon-ebs: if ($env:chocolateyPackageVersion -ne $null) {
amazon-ebs: $tempDir = Join-Path $tempDir "$($env:chocolateyPackageVersion)";
amazon-ebs: }
amazon-ebs:
amazon-ebs: $tempDir = $tempDir -replace '\\chocolatey\\chocolatey\\', '\chocolatey\'
amazon-ebs: if (![System.IO.Directory]::Exists($tempDir)) {
amazon-ebs: [System.IO.Directory]::CreateDirectory($tempDir) | Out-Null
amazon-ebs: }
amazon-ebs:
amazon-ebs: $fileFullPath = Join-Path $tempDir "SQLServer2019-x64-ENU-Dev.iso"
amazon-ebs: Get-ChocolateyWebFile @packageArgs -FileFullPath $fileFullPath
amazon-ebs: } else {
amazon-ebs: $fileFullPath = $pp['IsoPath']
amazon-ebs: $pp.Remove("IsoPath")
amazon-ebs: }
amazon-ebs:
amazon-ebs: # append remaining package parameters
amazon-ebs: $packageArgs.silentArgs += ($pp.GetEnumerator() | ForEach-Object { "/$($_.name)=`"$($_.value)`"" }) -join " "
amazon-ebs:
amazon-ebs: try {
amazon-ebs: $MountResult = Mount-DiskImage -ImagePath $fileFullPath -StorageType ISO -PassThru
amazon-ebs: $MountVolume = $MountResult | Get-Volume
amazon-ebs: $MountLocation = "$($MountVolume.DriveLetter):"
amazon-ebs:
amazon-ebs: Install-ChocolateyInstallPackage @packageArgs -File "$($MountLocation)\setup.exe"
amazon-ebs: }
amazon-ebs: finally {
amazon-ebs: Dismount-DiskImage -ImagePath $fileFullPath
amazon-ebs: }
amazon-ebs:
amazon-ebs: 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\sql-server-2019\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot'']
amazon-ebs: Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
amazon-ebs: Host version is 5.1.14393.0, PowerShell Version is '5.1.14393.3471' and CLR Version is '4.0.30319.42000'.
amazon-ebs: VERBOSE: Exporting function 'Format-FileSize'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChecksumValid'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-EnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
amazon-ebs: VERBOSE: Exporting function 'Get-FtpFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageParameters'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
amazon-ebs: VERBOSE: Exporting function 'Get-ToolsLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-UACEnabled'.
amazon-ebs: VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
amazon-ebs: VERBOSE: Exporting function 'Get-VirusCheckValid'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebFileName'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebHeaders'.
amazon-ebs: VERBOSE: Exporting function 'Install-BinFile'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPath'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-Vsix'.
amazon-ebs: VERBOSE: Exporting function 'Set-EnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Set-PowerShellExitCode'.
amazon-ebs: VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
amazon-ebs: VERBOSE: Exporting function 'Test-ProcessAdminRights'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-BinFile'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Exporting function 'Update-SessionEnvironment'.
amazon-ebs: VERBOSE: Exporting function 'Write-ChocolateyFailure'.
amazon-ebs: VERBOSE: Exporting function 'Write-ChocolateySuccess'.
amazon-ebs: VERBOSE: Exporting function 'Write-FileUpdateLog'.
amazon-ebs: VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
amazon-ebs: VERBOSE: Exporting alias 'Get-ProcessorBits'.
amazon-ebs: VERBOSE: Exporting alias 'Get-OSBitness'.
amazon-ebs: VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
amazon-ebs: VERBOSE: Exporting alias 'Generate-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'Add-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
amazon-ebs: VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
amazon-ebs: VERBOSE: Exporting alias 'Remove-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'refreshenv'.
amazon-ebs: Loading community extensions
amazon-ebs: Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
amazon-ebs: VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
amazon-ebs: VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
amazon-ebs: VERBOSE: Exporting function 'Get-AppInstallLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
amazon-ebs: VERBOSE: Exporting function 'Get-EffectiveProxy'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageCacheLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageParameters'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebContent'.
amazon-ebs: VERBOSE: Exporting function 'Register-Application'.
amazon-ebs: VERBOSE: Exporting function 'Remove-Process'.
amazon-ebs: VERBOSE: Importing function 'Get-AppInstallLocation'.
amazon-ebs: VERBOSE: Importing function 'Get-AvailableDriveLetter'.
amazon-ebs: VERBOSE: Importing function 'Get-EffectiveProxy'.
amazon-ebs: VERBOSE: Importing function 'Get-PackageCacheLocation'.
amazon-ebs: VERBOSE: Importing function 'Get-PackageParameters'.
amazon-ebs: VERBOSE: Importing function 'Get-UninstallRegistryKey'.
amazon-ebs: VERBOSE: Importing function 'Get-WebContent'.
amazon-ebs: VERBOSE: Importing function 'Register-Application'.
amazon-ebs: VERBOSE: Importing function 'Remove-Process'.
amazon-ebs: VERBOSE: Exporting function 'Format-FileSize'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChecksumValid'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
amazon-ebs: VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-EnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
amazon-ebs: VERBOSE: Exporting function 'Get-FtpFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageParameters'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
amazon-ebs: VERBOSE: Exporting function 'Get-ToolsLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-UACEnabled'.
amazon-ebs: VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
amazon-ebs: VERBOSE: Exporting function 'Get-VirusCheckValid'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebFile'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebFileName'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebHeaders'.
amazon-ebs: VERBOSE: Exporting function 'Install-BinFile'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPath'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Exporting function 'Install-Vsix'.
amazon-ebs: VERBOSE: Exporting function 'Set-EnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Set-PowerShellExitCode'.
amazon-ebs: VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
amazon-ebs: VERBOSE: Exporting function 'Test-ProcessAdminRights'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-BinFile'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
amazon-ebs: VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Exporting function 'Update-SessionEnvironment'.
amazon-ebs: VERBOSE: Exporting function 'Write-ChocolateyFailure'.
amazon-ebs: VERBOSE: Exporting function 'Write-ChocolateySuccess'.
amazon-ebs: VERBOSE: Exporting function 'Write-FileUpdateLog'.
amazon-ebs: VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
amazon-ebs: VERBOSE: Exporting function 'Get-AppInstallLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
amazon-ebs: VERBOSE: Exporting function 'Get-EffectiveProxy'.
amazon-ebs: VERBOSE: Exporting function 'Get-PackageCacheLocation'.
amazon-ebs: VERBOSE: Exporting function 'Get-WebContent'.
amazon-ebs: VERBOSE: Exporting function 'Register-Application'.
amazon-ebs: VERBOSE: Exporting function 'Remove-Process'.
amazon-ebs: VERBOSE: Exporting alias 'Get-ProcessorBits'.
amazon-ebs: VERBOSE: Exporting alias 'Get-OSBitness'.
amazon-ebs: VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
amazon-ebs: VERBOSE: Exporting alias 'Generate-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'Add-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
amazon-ebs: VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
amazon-ebs: VERBOSE: Exporting alias 'Remove-BinFile'.
amazon-ebs: VERBOSE: Exporting alias 'refreshenv'.
amazon-ebs: VERBOSE: Importing function 'Format-FileSize'.
amazon-ebs: VERBOSE: Importing function 'Get-AppInstallLocation'.
amazon-ebs: VERBOSE: Importing function 'Get-AvailableDriveLetter'.
amazon-ebs: VERBOSE: Importing function 'Get-ChecksumValid'.
amazon-ebs: VERBOSE: Importing function 'Get-ChocolateyUnzip'.
amazon-ebs: VERBOSE: Importing function 'Get-ChocolateyWebFile'.
amazon-ebs: VERBOSE: Importing function 'Get-EffectiveProxy'.
amazon-ebs: VERBOSE: Importing function 'Get-EnvironmentVariable'.
amazon-ebs: VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
amazon-ebs: VERBOSE: Importing function 'Get-FtpFile'.
amazon-ebs: VERBOSE: Importing function 'Get-OSArchitectureWidth'.
amazon-ebs: VERBOSE: Importing function 'Get-PackageCacheLocation'.
amazon-ebs: VERBOSE: Importing function 'Get-PackageParameters'.
amazon-ebs: VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
amazon-ebs: VERBOSE: Importing function 'Get-ToolsLocation'.
amazon-ebs: VERBOSE: Importing function 'Get-UACEnabled'.
amazon-ebs: VERBOSE: Importing function 'Get-UninstallRegistryKey'.
amazon-ebs: VERBOSE: Importing function 'Get-VirusCheckValid'.
amazon-ebs: VERBOSE: Importing function 'Get-WebContent'.
amazon-ebs: VERBOSE: Importing function 'Get-WebFile'.
amazon-ebs: VERBOSE: Importing function 'Get-WebFileName'.
amazon-ebs: VERBOSE: Importing function 'Get-WebHeaders'.
amazon-ebs: VERBOSE: Importing function 'Install-BinFile'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyPackage'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyPath'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyShortcut'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
amazon-ebs: VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Importing function 'Install-Vsix'.
amazon-ebs: VERBOSE: Importing function 'Register-Application'.
amazon-ebs: VERBOSE: Importing function 'Remove-Process'.
amazon-ebs: VERBOSE: Importing function 'Set-EnvironmentVariable'.
amazon-ebs: VERBOSE: Importing function 'Set-PowerShellExitCode'.
amazon-ebs: VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
amazon-ebs: VERBOSE: Importing function 'Test-ProcessAdminRights'.
amazon-ebs: VERBOSE: Importing function 'Uninstall-BinFile'.
amazon-ebs: VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
amazon-ebs: VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
amazon-ebs: VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
amazon-ebs: VERBOSE: Importing function 'Update-SessionEnvironment'.
amazon-ebs: VERBOSE: Importing function 'Write-ChocolateyFailure'.
amazon-ebs: VERBOSE: Importing function 'Write-ChocolateySuccess'.
amazon-ebs: VERBOSE: Importing function 'Write-FileUpdateLog'.
amazon-ebs: VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
amazon-ebs: VERBOSE: Importing alias 'Add-BinFile'.
amazon-ebs: VERBOSE: Importing alias 'Generate-BinFile'.
amazon-ebs: VERBOSE: Importing alias 'Get-InstallRegistryKey'.
amazon-ebs: VERBOSE: Importing alias 'Get-OSBitness'.
amazon-ebs: VERBOSE: Importing alias 'Get-ProcessorBits'.
amazon-ebs: VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
amazon-ebs: VERBOSE: Importing alias 'refreshenv'.
amazon-ebs: VERBOSE: Importing alias 'Remove-BinFile'.
amazon-ebs: VERBOSE: Importing alias 'Start-ChocolateyProcess'.
amazon-ebs: ---------------------------Script Execution---------------------------
amazon-ebs: Running 'ChocolateyScriptRunner' for sql-server-2019 v15.0.2000.20200604 with packageScript 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\sql-server-2019', installArguments: '', packageParameters: '/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso',
amazon-ebs: Running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'
amazon-ebs: VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
amazon-ebs: VERBOSE: Operation 'Enumerate CimInstances' complete.
amazon-ebs: Running Get-PackageParameters
amazon-ebs: Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
amazon-ebs: Adding package param 'IsoPath'='C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot'
amazon-ebs: VERBOSE: Exporting function 'Get-Disk'.
amazon-ebs: VERBOSE: Exporting function 'Initialize-Disk'.
amazon-ebs: VERBOSE: Exporting function 'Clear-Disk'.
amazon-ebs: VERBOSE: Exporting function 'New-Partition'.
amazon-ebs: VERBOSE: Exporting function 'Update-Disk'.
amazon-ebs: VERBOSE: Exporting function 'Enable-StorageHighAvailability'.
amazon-ebs: VERBOSE: Exporting function 'Disable-StorageHighAvailability'.
amazon-ebs: VERBOSE: Exporting function 'Get-DiskImage'.
amazon-ebs: VERBOSE: Exporting function 'Mount-DiskImage'.
amazon-ebs: VERBOSE: Exporting function 'Dismount-DiskImage'.
amazon-ebs: VERBOSE: Exporting function 'Get-FileIntegrity'.
amazon-ebs: VERBOSE: Exporting function 'Set-FileIntegrity'.
amazon-ebs: VERBOSE: Exporting function 'Repair-FileIntegrity'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageFileServer'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StorageFileServer'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageFileServer'.
amazon-ebs: VERBOSE: Exporting function 'New-FileShare'.
amazon-ebs: VERBOSE: Exporting function 'Get-FileShare'.
amazon-ebs: VERBOSE: Exporting function 'Remove-FileShare'.
amazon-ebs: VERBOSE: Exporting function 'Grant-FileShareAccess'.
amazon-ebs: VERBOSE: Exporting function 'Block-FileShareAccess'.
amazon-ebs: VERBOSE: Exporting function 'Revoke-FileShareAccess'.
amazon-ebs: VERBOSE: Exporting function 'Unblock-FileShareAccess'.
amazon-ebs: VERBOSE: Exporting function 'Get-FileShareAccessControlEntry'.
amazon-ebs: VERBOSE: Exporting function 'Get-FileStorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Set-FileStorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Clear-FileStorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Get-InitiatorId'.
amazon-ebs: VERBOSE: Exporting function 'Remove-InitiatorId'.
amazon-ebs: VERBOSE: Exporting function 'Get-InitiatorPort'.
amazon-ebs: VERBOSE: Exporting function 'Set-InitiatorPort'.
amazon-ebs: VERBOSE: Exporting function 'Get-MaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Remove-MaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Rename-MaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Add-InitiatorIdToMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Remove-InitiatorIdFromMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Add-TargetPortToMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Remove-TargetPortFromMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Add-VirtualDiskToMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Remove-VirtualDiskFromMaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'Get-OffloadDataTransferSetting'.
amazon-ebs: VERBOSE: Exporting function 'Get-Partition'.
amazon-ebs: VERBOSE: Exporting function 'Remove-Partition'.
amazon-ebs: VERBOSE: Exporting function 'Resize-Partition'.
amazon-ebs: VERBOSE: Exporting function 'Get-PartitionSupportedSize'.
amazon-ebs: VERBOSE: Exporting function 'Add-PartitionAccessPath'.
amazon-ebs: VERBOSE: Exporting function 'Remove-PartitionAccessPath'.
amazon-ebs: VERBOSE: Exporting function 'Get-ResiliencySetting'.
amazon-ebs: VERBOSE: Exporting function 'Set-ResiliencySetting'.
amazon-ebs: VERBOSE: Exporting function 'Set-Disk'.
amazon-ebs: VERBOSE: Exporting function 'Set-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Set-Partition'.
amazon-ebs: VERBOSE: Exporting function 'Set-PhysicalDisk'.
amazon-ebs: VERBOSE: Exporting function 'Set-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'Set-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageSubSystem'.
amazon-ebs: VERBOSE: Exporting function 'Add-PhysicalDisk'.
amazon-ebs: VERBOSE: Exporting function 'Remove-PhysicalDisk'.
amazon-ebs: VERBOSE: Exporting function 'Set-FileShare'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageReliabilityCounter'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageEnclosure'.
amazon-ebs: VERBOSE: Exporting function 'Enable-StorageEnclosureIdentification'.
amazon-ebs: VERBOSE: Exporting function 'Disable-StorageEnclosureIdentification'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageEnclosureVendorData'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageJob'.
amazon-ebs: VERBOSE: Exporting function 'Stop-StorageJob'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealth'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageNode'.
amazon-ebs: VERBOSE: Exporting function 'Get-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'New-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'New-StorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'Update-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'Optimize-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'Get-VirtualDiskSupportedSize'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageProvider'.
amazon-ebs: VERBOSE: Exporting function 'Update-StorageProviderCache'.
amazon-ebs: VERBOSE: Exporting function 'Register-StorageSubsystem'.
amazon-ebs: VERBOSE: Exporting function 'Unregister-StorageSubsystem'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageProvider'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageReliabilityCounterDeprecated'.
amazon-ebs: VERBOSE: Exporting function 'Reset-StorageReliabilityCounter'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageSetting'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageSetting'.
amazon-ebs: VERBOSE: Exporting function 'Update-HostStorageCache'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageSubSystem'.
amazon-ebs: VERBOSE: Exporting function 'New-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'New-StorageSubsystemVirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'New-MaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'New-StorageFileServer'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageDiagnosticInfoInternal'.
amazon-ebs: VERBOSE: Exporting function 'Clear-StorageDiagnosticInfo'.
amazon-ebs: VERBOSE: Exporting function 'Start-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting alias 'Enable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting function 'Stop-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting alias 'Enable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting alias 'Disable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Resize-StorageTier'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageTierSupportedSize'.
amazon-ebs: VERBOSE: Exporting function 'Get-TargetPort'.
amazon-ebs: VERBOSE: Exporting function 'Get-TargetPortal'.
amazon-ebs: VERBOSE: Exporting function 'Get-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Remove-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Show-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Hide-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'New-VirtualDiskSnapshot'.
amazon-ebs: VERBOSE: Exporting function 'New-VirtualDiskClone'.
amazon-ebs: VERBOSE: Exporting function 'Resize-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Repair-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Connect-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Disconnect-VirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Get-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Format-Volume'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Repair-Volume'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Optimize-Volume'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-SupportedFileSystems'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-SupportedClusterSizes'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-VolumeCorruptionCount'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-VolumeScrubPolicy'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Set-VolumeScrubPolicy'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Write-VolumeCache'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting alias 'Write-FileSystemCache'.
amazon-ebs: VERBOSE: Exporting alias 'Flush-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-DedupProperties'.
amazon-ebs: VERBOSE: Exporting alias 'Initialize-Volume'.
amazon-ebs: VERBOSE: Exporting alias 'Write-FileSystemCache'.
amazon-ebs: VERBOSE: Exporting alias 'Flush-Volume'.
amazon-ebs: VERBOSE: Importing function 'Get-StorageHealth'.
amazon-ebs: VERBOSE: Importing function 'Get-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Importing function 'Remove-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Importing function 'Set-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Importing function 'Clear-StorageDiagnosticInfo'.
amazon-ebs: VERBOSE: Importing function 'Get-StorageDiagnosticInfoInternal'.
amazon-ebs: VERBOSE: Importing function 'Get-StorageSubSystem'.
amazon-ebs: VERBOSE: Importing function 'New-MaskingSet'.
amazon-ebs: VERBOSE: Importing function 'New-StorageFileServer'.
amazon-ebs: VERBOSE: Importing function 'New-StoragePool'.
amazon-ebs: VERBOSE: Importing function 'New-StorageSubsystemVirtualDisk'.
amazon-ebs: VERBOSE: Importing function 'Start-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Importing function 'Stop-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Importing alias 'Disable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Importing alias 'Enable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealth'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageHealthSettingInternal'.
amazon-ebs: VERBOSE: Exporting function 'Clear-StorageDiagnosticInfo'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageDiagnosticInfoInternal'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageSubSystem'.
amazon-ebs: VERBOSE: Exporting function 'New-MaskingSet'.
amazon-ebs: VERBOSE: Exporting function 'New-StorageFileServer'.
amazon-ebs: VERBOSE: Exporting function 'New-StoragePool'.
amazon-ebs: VERBOSE: Exporting function 'New-StorageSubsystemVirtualDisk'.
amazon-ebs: VERBOSE: Exporting function 'Start-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting function 'Stop-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting function 'CreateErrorRecord'.
amazon-ebs: VERBOSE: Exporting function 'Get-PhysicalDisk'.
amazon-ebs: VERBOSE: Exporting function 'Get-PhysicalExtent'.
amazon-ebs: VERBOSE: Exporting function 'Get-PhysicalExtentAssociation'.
amazon-ebs: VERBOSE: Exporting function 'Enable-PhysicalDiskIdentification'.
amazon-ebs: VERBOSE: Exporting function 'Disable-PhysicalDiskIdentification'.
amazon-ebs: VERBOSE: Exporting function 'Reset-PhysicalDisk'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageFirmwareInformation'.
amazon-ebs: VERBOSE: Exporting function 'Update-StorageFirmware'.
amazon-ebs: VERBOSE: Exporting function 'Get-PhysicalDiskStorageNodeView'.
amazon-ebs: VERBOSE: Exporting function 'Get-DiskStorageNodeView'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageEnclosureStorageNodeView'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealthAction'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageFaultDomain'.
amazon-ebs: VERBOSE: Exporting function 'New-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageAdvancedProperty'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealthReport'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageHealthSetting'.
amazon-ebs: VERBOSE: Exporting function 'Set-StorageHealthSetting'.
amazon-ebs: VERBOSE: Exporting function 'Remove-StorageHealthSetting'.
amazon-ebs: VERBOSE: Exporting function 'Debug-StorageSubSystem'.
amazon-ebs: VERBOSE: Exporting function 'Debug-FileShare'.
amazon-ebs: VERBOSE: Exporting function 'Debug-Volume'.
amazon-ebs: VERBOSE: Exporting function 'Enable-StorageMaintenanceMode'.
amazon-ebs: VERBOSE: Exporting function 'Disable-StorageMaintenanceMode'.
amazon-ebs: VERBOSE: Exporting function 'Get-StorageDiagnosticInfo'.
amazon-ebs: VERBOSE: Exporting alias 'Disable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting alias 'Enable-StorageDiagnosticLog'.
amazon-ebs: VERBOSE: Exporting alias 'Enable-PhysicalDiskIndication'.
amazon-ebs: VERBOSE: Exporting alias 'Disable-PhysicalDiskIndication'.
amazon-ebs: VERBOSE: Exporting alias 'Get-PhysicalDiskSNV'.
amazon-ebs: VERBOSE: Exporting alias 'Get-DiskSNV'.
amazon-ebs: VERBOSE: Exporting alias 'Get-StorageEnclosureSNV'.
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Mount-DiskImage -ImagePath $fileFullPath -StorageType ISO -PassThru
amazon-ebs: Progress: 100% - 1/1 completedRunning Install-ChocolateyInstallPackage -silentArgs '/IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator"' -packageName 'sql-server-2019' -validExitCodes '0 3010' -fileType 'EXE' -file ':\setup.exe'
amazon-ebs: Running Get-ProcessorBits -compare '32'
amazon-ebs: Installing sql-server-2019...
amazon-ebs: WARNING: Unable to set the working directory for installer to location of ':\setup.exe'
amazon-ebs: Ensuring 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools' exists
amazon-ebs: Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 3010' -workingDirectory 'C:\Users\Administrator\AppData\Local\Temp\chocolatey' -statements '/IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator" ' -exeToRun ':\setup.exe'
amazon-ebs: Test-ProcessAdminRights: returning True
amazon-ebs: Elevating permissions and running [":\setup.exe" /IAcceptSqlServerLicenseTerms /Q /CONFIGURATIONFILE="C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini" /SQLSYSADMINACCOUNTS="WORKGROUP\administrator" ]. This may take a while, depending on the statements.
amazon-ebs: The filename, directory name, or volume label syntax is incorrect.
amazon-ebs: Progress: 100% - 1/1 completedERROR: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form."
amazon-ebs: at Start-ChocolateyProcessAsAdmin, C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1: line 197
amazon-ebs: at Install-ChocolateyInstallPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyInstallPackage.ps1: line 335
amazon-ebs: at <ScriptBlock>, C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1: line 79
amazon-ebs: at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 49
amazon-ebs: at <ScriptBlock>, <No file>: line 1
amazon-ebs: 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\sql-server-2019\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '/IsoPath:C:\Users\Administrator\AppData\Local\Temp\SQLServer2019-x64-ENU-Dev.iso' '/ConfigurationFile:C:\Users\Administrator\AppData\Local\Temp\SQL2016StandAlone_Install_Config.ini' '/IgnorePendingReboot''] exited with '-1'.
amazon-ebs: Calling command ['"C:\Windows\System32\shutdown.exe" /a']
amazon-ebs: Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
amazon-ebs: Capturing package files in 'C:\ProgramData\chocolatey\lib\sql-server-2019'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\sql-server-2019.nupkg'
amazon-ebs: with checksum '0460B5454351EE4975EAA3542D389FD7'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\sql-server-2019.nuspec'
amazon-ebs: with checksum '8F7A6D4DE5E529D5B869CCB0768D7140'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\.skipAutoUninstall'
amazon-ebs: with checksum 'D41D8CD98F00B204E9800998ECF8427E'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateybeforemodify.ps1'
amazon-ebs: with checksum '0C6618261D6A1517A77C674DB0F994CB'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'
amazon-ebs: with checksum 'C472C87F8441635AC2FD99329B1594BF'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyuninstall.ps1'
amazon-ebs: with checksum 'CC145584CDE9311CA50A75A5B63C9CA0'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\ConfigurationFile.ini'
amazon-ebs: with checksum '0632EC7E095C6FC37974AC063E702D8B'
amazon-ebs: Found 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\Get-PendingReboot.ps1'
amazon-ebs: with checksum 'B44FCC9D1CD75C5D3ADCCD4C3CD6FB3C'
amazon-ebs: Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604".
amazon-ebs: There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.files'
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.arguments".
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.extra".
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.version".
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.sxs".
amazon-ebs: Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\sql-server-2019.15.0.2000.20200604\.pin".
amazon-ebs: Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
amazon-ebs: The install of sql-server-2019 was NOT successful.
amazon-ebs: Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
amazon-ebs: See log for details.
amazon-ebs: Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
amazon-ebs: Moving 'C:\ProgramData\chocolatey\lib\sql-server-2019'
amazon-ebs: to 'C:\ProgramData\chocolatey\lib-bad\sql-server-2019'
amazon-ebs: Attempting to delete file "C:\Users\Administrator\AppData\Local\NuGet\Cache\sql-server-2019.15.0.2000.20200604.nupkg".
amazon-ebs:
amazon-ebs: Chocolatey installed 0/1 packages. 1 packages failed.
amazon-ebs: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
amazon-ebs:
amazon-ebs: Failures
amazon-ebs: - sql-server-2019 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'.
amazon-ebs: See log for details.
amazon-ebs:
amazon-ebs: Did you know the proceeds of Pro (and some proceeds from other
amazon-ebs: licensed editions) go into bettering the community infrastructure?
amazon-ebs: Your support ensures an active community, keeps Chocolatey tip top,
amazon-ebs: plus it nets you some awesome features!
amazon-ebs: https://chocolatey.org/compare
amazon-ebs: Sending message 'PostRunMessage' out if there are subscribers...
amazon-ebs: Exiting with -1
amazon-ebs: Chocolatey v0.10.16-beta
@dragon788 Here's your error:
$MountLocation = "$($MountVolume.DriveLetter):"
Install-ChocolateyInstallPackage @packageArgs -File "$($MountLocation)\setup.exe"
That's package specific. Looks like there is a bug in the package or the chocolatey-core.extension package - I would look to see about upgrading the chocolatey-core.extension package first and see if it resolves not getting the MountVolume.
Having the same issue as @dragon788 when trying to choco install sql-server-2019
Progress: 100% - 2/2 completed Installing sql-server-2019... WARNING: Unable to set the working directory for installer to location of ':\setup.exe' Progress: 100% - 2/2 completed ERROR: Exception calling "GetFullPath" with "1" argument(s): "The path is not of a legal form." The install of sql-server-2019 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'. See log for details.
Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- sql-server-2019 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-2019\tools\chocolateyinstall.ps1'. See log for details.
I am on the latest chocolatey-core.extension
package.
@ferventcoder Any recommendations for a fix?
What You Are Seeing?
Chocolatey Version 0.10.13
Installing a package that calls 'Get-ChocolateyUnzip' fails when the working directory is a UNC path (such as with an MDT LTI Application installer). The error logged is:
What is Expected?
The package should be installed. A working directory is not necessary to unzip the file. The WorkingDirectory can be left unset. https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.processstartinfo.workingdirectory?view=netframework-4.7.2
How Did You Get This To Happen? (Steps to Reproduce)
\\servername\sharename\
).choco install
.Workaround
Set a working directory packages installation script before calling Get-ChocolateyUnzip.
Output Log
Full Log Output
~~~sh 2019-03-28 15:26:47,664 3528 [DEBUG] - XmlConfiguration is now operational 2019-03-28 15:26:47,727 3528 [INFO ] - ============================================================ 2019-03-28 15:26:47,961 3528 [INFO ] - Chocolatey v0.10.13 2019-03-28 15:26:47,977 3528 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0 2019-03-28 15:26:47,977 3528 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". 2019-03-28 15:26:47,977 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". 2019-03-28 15:26:47,993 3528 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install get-chocolateyunzip-test -s http://dev-build/ChocolateyServer/chocolatey 2019-03-28 15:26:47,993 3528 [DEBUG] - Received arguments: install get-chocolateyunzip-test -s http://dev-build/ChocolateyServer/chocolatey 2019-03-28 15:26:48,055 3528 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2019-03-28 15:26:48,055 3528 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2019-03-28 15:26:48,071 3528 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2019-03-28 15:26:48,149 3528 [DEBUG] - Performing validation checks. 2019-03-28 15:26:48,149 3528 [DEBUG] - Global Configuration Validation Checks: 2019-03-28 15:26:48,149 3528 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked 2019-03-28 15:26:48,149 3528 [DEBUG] - System State Validation Checks: 2019-03-28 15:26:48,164 3528 [DEBUG] - Reboot Requirement Checks: 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending Computer Rename = Checked 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending Component Based Servicing = Checked 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending Windows Auto Update = Checked 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending File Rename Operations = Checked 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending Windows Package Installer = Checked 2019-03-28 15:26:48,164 3528 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked 2019-03-28 15:26:48,180 3528 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s). 2019-03-28 15:26:48,180 3528 [DEBUG] - The source 'http://dev-build/ChocolateyServer/chocolatey' evaluated to a 'normal' source type 2019-03-28 15:26:48,180 3528 [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. 2019-03-28 15:26:48,196 3528 [DEBUG] - Configuration: CommandName='install'| CacheLocation='C:\Users\AsteresAdmin\AppData\Local\Temp\chocolatey'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| Sources='http://dev-build/ChocolateyServer/chocolatey'| SourceType='normal'|Debug='False'|Verbose='False'|Trace='False'| Force='False'|Noop='False'|HelpRequested='False'| UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'| PromptForConfirmation='False'|AcceptLicense='False'| AllowUnofficialBuild='False'|Input='get-chocolateyunzip-test'| AllVersions='False'|SkipPackageInstallProvider='False'| PackageNames='get-chocolateyunzip-test'|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.17763.0'| Information.PlatformName='Windows 10'| Information.ChocolateyVersion='0.10.13.0'| Information.ChocolateyProductVersion='0.10.13'| Information.FullName='choco, Version=0.10.13.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.Is64BitOperatingSystem='True'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.UserName='AsteresAdmin'| Information.UserDomainName='SC-591634'| Information.IsUserAdministrator='True'| Information.IsUserSystemAccount='False'| Information.IsUserRemoteDesktop='False'| Information.IsUserRemote='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.LogWithoutColor='False'| Features.VirusCheck='False'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='True'| Features.UsePackageExitCodes='True'| Features.UseEnhancedExitCodes='True'| Features.UseFipsCompliantChecksums='False'| Features.ShowNonElevatedWarnings='True'| Features.ShowDownloadProgress='True'| Features.StopOnFirstPackageFailure='False'| Features.UseRememberedArgumentsForUpgrades='False'| Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'| Features.SkipPackageUpgradesWhenNotInstalled='False'| Features.RemovePackageInformationOnUninstall='False'| Features.ExitOnRebootDetected='False'| Features.LogValidationResultsOnWarnings='True'| Features.ScriptsCheckLastExitCode='False'| ListCommand.LocalOnly='False'| ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'| ListCommand.PageSize='25'|ListCommand.Exact='False'| ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'| ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'| ListCommand.ApprovedOnly='False'| ListCommand.DownloadCacheAvailable='False'| ListCommand.NotBroken='False'| ListCommand.IncludeVersionOverrides='False'| UpgradeCommand.FailOnUnfound='False'| UpgradeCommand.FailOnNotInstalled='False'| UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| UpgradeCommand.ExcludePrerelease='False'| NewCommand.AutomaticPackage='False'| NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'| SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'| SourceCommand.AllowSelfService='False'| SourceCommand.VisibleToAdminsOnly='False'| FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'| ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'| OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'| 2019-03-28 15:26:48,196 3528 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ 2019-03-28 15:26:48,196 3528 [INFO ] - Installing the following packages: 2019-03-28 15:26:48,196 3528 [INFO ] - get-chocolateyunzip-test 2019-03-28 15:26:48,211 3528 [INFO ] - By installing you accept licenses for the packages. 2019-03-28 15:26:48,305 3528 [DEBUG] - Using 'http://dev-build/ChocolateyServer/chocolatey'. 2019-03-28 15:26:48,430 3528 [DEBUG] - - Supports prereleases? 'True'. 2019-03-28 15:26:48,430 3528 [DEBUG] - - Is ServiceBased? 'True'. 2019-03-28 15:26:48,946 3528 [DEBUG] - Package 'get-chocolateyunzip-test' found on source 'http://dev-build/ChocolateyServer/chocolatey' 2019-03-28 15:26:49,164 3528 [INFO ] - [NuGet] Installing 'get-chocolateyunzip-test 0.0.1'. 2019-03-28 15:26:49,164 3528 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'get-chocolateyunzip-test\tools'. 2019-03-28 15:26:49,164 3528 [DEBUG] - [NuGet] Added file 'test.zip' to folder 'get-chocolateyunzip-test\tools'. 2019-03-28 15:26:49,243 3528 [DEBUG] - [NuGet] Added file 'get-chocolateyunzip-test.nuspec' to folder 'get-chocolateyunzip-test'. 2019-03-28 15:26:49,243 3528 [DEBUG] - [NuGet] Added file 'get-chocolateyunzip-test.nupkg' to folder 'get-chocolateyunzip-test'. 2019-03-28 15:26:49,243 3528 [INFO ] - [NuGet] Successfully installed 'get-chocolateyunzip-test 0.0.1'. 2019-03-28 15:26:49,258 3528 [INFO ] - get-chocolateyunzip-test v0.0.1 2019-03-28 15:26:49,274 3528 [INFO ] - get-chocolateyunzip-test package files install completed. Performing other installation steps. 2019-03-28 15:26:49,336 3528 [DEBUG] - Setting installer args for get-chocolateyunzip-test 2019-03-28 15:26:49,336 3528 [DEBUG] - Setting package parameters for get-chocolateyunzip-test 2019-03-28 15:26:49,336 3528 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1': 2019-03-28 15:26:49,352 3528 [DEBUG] - $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $zipFileLocation = Join-Path $toolsDir "test.zip" if ((Get-Location) -eq $null) { Write-Warning "Working Directory not set. Setting to '$env:ChocolateyInstall'" Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 } if ([string]::IsNullOrEmpty((Get-Location))) { Write-Warning "Working Directory is an empty string. Setting to '$env:ChocolateyInstall'" Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 } Write-Debug "Working Directory is now '$(Get-Location)'" Get-ChocolateyUnzip -FileFullPath $zipFileLocation -Destination $toolsDir 2019-03-28 15:26:49,368 3528 [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\get-chocolateyunzip-test\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] 2019-03-28 15:26:49,368 3528 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by '' 2019-03-28 15:26:49,774 3528 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.1' and CLR Version is '4.0.30319.42000'. 2019-03-28 15:26:51,305 3528 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2019-03-28 15:26:51,305 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2019-03-28 15:26:51,305 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2019-03-28 15:26:51,321 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2019-03-28 15:26:51,336 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2019-03-28 15:26:51,352 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2019-03-28 15:26:51,368 3528 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2019-03-28 15:26:51,383 3528 [DEBUG] - Loading community extensions 2019-03-28 15:26:51,414 3528 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1' 2019-03-28 15:26:51,414 3528 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'. 2019-03-28 15:26:51,774 3528 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2019-03-28 15:26:51,774 3528 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2019-03-28 15:26:51,774 3528 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2019-03-28 15:26:51,774 3528 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2019-03-28 15:26:51,774 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2019-03-28 15:26:51,789 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,805 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2019-03-28 15:26:51,821 3528 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2019-03-28 15:26:51,836 3528 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Format-FileSize'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'. 2019-03-28 15:26:51,852 3528 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'. 2019-03-28 15:26:51,868 3528 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Get-WebFile'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-BinFile'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'. 2019-03-28 15:26:51,883 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Install-Vsix'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2019-03-28 15:26:51,899 3528 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'refreshenv'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'. 2019-03-28 15:26:51,914 3528 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'. 2019-03-28 15:26:52,039 3528 [DEBUG] - Running 'ChocolateyScriptRunner' for get-chocolateyunzip-test v0.0.1 with packageScript 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test', installArguments: '', packageParameters: '', 2019-03-28 15:26:52,055 3528 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1' 2019-03-28 15:26:52,086 3528 [DEBUG] - Working Directory is now 'Microsoft.PowerShell.Core\FileSystem::\\dev-build\chocolatey-packages' 2019-03-28 15:26:52,164 3528 [DEBUG] - Running Get-ChocolateyUnzip -fileFullPath 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\test.zip' -destination 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools' 2019-03-28 15:26:52,164 3528 [DEBUG] - Running Get-ProcessorBits -compare '32' 2019-03-28 15:26:52,196 3528 [INFO ] - Extracting C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\test.zip to C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools... 2019-03-28 15:26:52,211 3528 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe' 2019-03-28 15:26:52,227 3528 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools" -y "C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\test.zip"] 2019-03-28 15:26:52,414 3528 [ERROR] - ERROR: Exception calling "Start" with "0" argument(s): "The directory name is invalid" 2019-03-28 15:26:52,430 3528 [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\get-chocolateyunzip-test\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'. 2019-03-28 15:26:52,446 3528 [DEBUG] - Calling command ['"C:\windows\System32\shutdown.exe" /a'] 2019-03-28 15:26:52,539 3528 [DEBUG] - Command ['"C:\windows\System32\shutdown.exe" /a'] exited with '1116' 2019-03-28 15:26:52,618 3528 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test' 2019-03-28 15:26:52,618 3528 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\get-chocolateyunzip-test.nupkg' with checksum '82F0440996AF82AC5E7337FCAF872436' 2019-03-28 15:26:52,618 3528 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\get-chocolateyunzip-test.nuspec' with checksum '90CAB812A095F8C95BA35E052BD98989' 2019-03-28 15:26:52,618 3528 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1' with checksum 'F67CEF909AA8B483A76E40F1A9AE22BF' 2019-03-28 15:26:52,618 3528 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\test.zip' with checksum '76CDB2BAD9582D23C1F6F4D868218D6C' 2019-03-28 15:26:52,633 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\get-chocolateyunzip-test.0.0.1\.arguments". 2019-03-28 15:26:52,633 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\get-chocolateyunzip-test.0.0.1\.extra". 2019-03-28 15:26:52,633 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\get-chocolateyunzip-test.0.0.1\.version". 2019-03-28 15:26:52,633 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\get-chocolateyunzip-test.0.0.1\.sxs". 2019-03-28 15:26:52,633 3528 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\get-chocolateyunzip-test.0.0.1\.pin". 2019-03-28 15:26:52,649 3528 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\get-chocolateyunzip-test". 2019-03-28 15:26:52,649 3528 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2019-03-28 15:26:52,649 3528 [ERROR] - The install of get-chocolateyunzip-test was NOT successful. 2019-03-28 15:26:52,664 3528 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1'. See log for details. 2019-03-28 15:26:52,664 3528 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test' to 'C:\ProgramData\chocolatey\lib-bad\get-chocolateyunzip-test' 2019-03-28 15:26:54,681 3528 [DEBUG] - Attempting to delete file "C:\Users\AsteresAdmin\AppData\Local\NuGet\Cache\get-chocolateyunzip-test.0.0.1.nupkg". 2019-03-28 15:26:54,697 3528 [WARN ] - Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2019-03-28 15:26:54,697 3528 [INFO ] - 2019-03-28 15:26:54,712 3528 [ERROR] - Failures 2019-03-28 15:26:54,712 3528 [ERROR] - - get-chocolateyunzip-test (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\get-chocolateyunzip-test\tools\chocolateyinstall.ps1'. See log for details. 2019-03-28 15:26:54,712 3528 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2019-03-28 15:26:54,728 3528 [DEBUG] - Exiting with -1 ~~~
get-chocolateyunzip-test.0.0.1.nupkg.zip