pauby / ChocoPackages

Chocolatey packages I maintain
26 stars 37 forks source link

(snagit) Fails to install on Win11 22H2 #144

Closed virtualex-itv closed 1 year ago

virtualex-itv commented 2 years ago

Chocolatey Version

1.1.0

Chocolatey License

No response

Package Version

2022.1.0

Current Behaviour

Windows 11 - 22621.169

choco install snagit -y
Chocolatey v1.1.0
Installing the following packages:
snagit
By installing, you accept licenses for the packages.
Progress: Downloading snagit 2022.1.0... 100%

snagit v2022.1.0 [Approved]
snagit package files install completed. Performing other installation steps.
Downloading snagit 64 bit
  from 'https://download.techsmith.com/snagit/releases/2210/snagit.msi'
Progress: 100% - Completed download of C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi (319.2 MB).
Download of snagit.msi (319.2 MB) completed.
Hashes match.
Installing snagit...
ERROR: Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
The install of snagit was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\snagit\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
 - snagit (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1'.
 See log for details.```

When running the .msi manually, the installer halts with the following:

This MSI has been created for Enterprise installation use.  Please use the EXE for standard Snagit installation.```

Expected Behaviour

Application install via MSI is not supported on Windows 11 and requires EXE instead. Application should install if using the EXE

Steps To Reproduce

  1. Windows 11 - 22621.169
  2. choco install snagit -y

Environment

- Operating System (run `[System.Environment]::OSVersion.ToString()` in a PowerShell session):
- PowerShell Version (run `$PSVersionTable` in a PowerShell session):
- Shell:
Microsoft Windows NT 10.0.22621.0
PowerShell Version 5.1.22621.169

Chocolatey Log

`-07-11 12:14:02,109 27844 [INFO ] - ============================================================
2022-07-11 12:14:02,185 27844 [INFO ] - Chocolatey v1.1.0
2022-07-11 12:14:02,189 27844 [DEBUG] - Chocolatey is running on Windows v 10.0.22621.0
2022-07-11 12:14:02,190 27844 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2022-07-11 12:14:02,190 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2022-07-11 12:14:02,193 27844 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install snagit -y
2022-07-11 12:14:02,193 27844 [DEBUG] - Received arguments: install snagit -y
2022-07-11 12:14:02,213 27844 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2022-07-11 12:14:02,216 27844 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2022-07-11 12:14:02,219 27844 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2022-07-11 12:14:02,241 27844 [DEBUG] - Performing validation checks.
2022-07-11 12:14:02,243 27844 [DEBUG] - Global Configuration Validation Checks:
2022-07-11 12:14:02,244 27844 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2022-07-11 12:14:02,244 27844 [DEBUG] - System State Validation Checks:
2022-07-11 12:14:02,245 27844 [DEBUG] -  Reboot Requirement Checks:
2022-07-11 12:14:02,246 27844 [DEBUG] -  - Pending Computer Rename = Checked
2022-07-11 12:14:02,247 27844 [DEBUG] -  - Pending Component Based Servicing = Checked
2022-07-11 12:14:02,247 27844 [DEBUG] -  - Pending Windows Auto Update = Checked
2022-07-11 12:14:02,248 27844 [DEBUG] -  - Pending File Rename Operations = Ignored
2022-07-11 12:14:02,248 27844 [DEBUG] -  - Pending Windows Package Installer = Checked
2022-07-11 12:14:02,249 27844 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2022-07-11 12:14:02,250 27844 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2022-07-11 12:14:02,251 27844 [DEBUG] - The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2022-07-11 12:14:02,252 27844 [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.
2022-07-11 12:14:02,255 27844 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\me\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
DisableCompatibilityChecks='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='snagit'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='snagit'|
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.22621.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='1.1.0.0'|
Information.ChocolateyProductVersion='1.1.0'|
Information.FullName='choco, Version=1.1.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='me'|Information.UserDomainName='KRATOS'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\tools\Cmder'|
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='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='True'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
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'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|
2022-07-11 12:14:02,255 27844 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2022-07-11 12:14:02,258 27844 [INFO ] - Installing the following packages:
2022-07-11 12:14:02,258 27844 [INFO ] - snagit
2022-07-11 12:14:02,259 27844 [INFO ] - By installing, you accept licenses for the packages.
2022-07-11 12:14:02,307 27844 [DEBUG] - Using 'https://community.chocolatey.org/api/v2/'.
2022-07-11 12:14:02,543 27844 [DEBUG] - - Supports prereleases? 'True'.
2022-07-11 12:14:02,543 27844 [DEBUG] - - Is ServiceBased? 'True'.
2022-07-11 12:14:02,664 27844 [DEBUG] - Package 'snagit' found on source 'https://community.chocolatey.org/api/v2/'
2022-07-11 12:14:02,692 27844 [INFO ] - [NuGet] Attempting to resolve dependency 'dotnetfx'.
2022-07-11 12:14:02,730 27844 [INFO ] - [NuGet] Attempting to resolve dependency 'chocolatey-dotnetfx.extension (= 1.0.1)'.
2022-07-11 12:14:02,748 27844 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919355 (= 1.0.20160915)'.
2022-07-11 12:14:02,758 27844 [INFO ] - [NuGet] Attempting to resolve dependency 'KB2919442 (= 1.0.20160915)'.
2022-07-11 12:14:03,032 27844 [INFO ] - [NuGet] Attempting to resolve dependency 'webview2-runtime'.
2022-07-11 12:14:03,084 27844 [INFO ] - [NuGet] Installing 'snagit 2022.1.0'.
2022-07-11 12:14:03,087 27844 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'snagit\tools'.
2022-07-11 12:14:03,088 27844 [DEBUG] - [NuGet] Added file 'snagit.nupkg' to folder 'snagit'.
2022-07-11 12:14:03,311 27844 [DEBUG] - [NuGet] Added file 'snagit.nuspec' to folder 'snagit'.
2022-07-11 12:14:03,312 27844 [INFO ] - [NuGet] Successfully installed 'snagit 2022.1.0'.
2022-07-11 12:14:03,312 27844 [INFO ] - 
snagit v2022.1.0 [Approved]
2022-07-11 12:14:03,318 27844 [INFO ] - snagit package files install completed. Performing other installation steps.
2022-07-11 12:14:03,362 27844 [DEBUG] - Setting installer args for snagit
2022-07-11 12:14:03,363 27844 [DEBUG] - Setting package parameters for snagit
2022-07-11 12:14:03,363 27844 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1':
2022-07-11 12:14:03,367 27844 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
# Old Techsmith software versions can be found at https://www.techsmith.com/download/oldversions
$url64 = 'https://download.techsmith.com/snagit/releases/2210/snagit.msi'

$packageArgs = @{
    packageName    = $env:ChocolateyPackageName
    fileType       = 'EXE'
    url64bit       = $Url64

    checksum64     = 'efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94'
    checksumType64 = 'sha256'

    silentArgs     = '/quiet /passive /norestart'
    validExitCodes = @(0, 3010, 1641)
}

# Snagit MSI parameters https://assets.techsmith.com/Docs/Snagit-2022-MSI-Installation-Guide.pdf
$arguments = Get-PackageParameters -Parameter $env:chocolateyPackageParameters
# use licensekey instead of licenseCode as this is consistent with Snagit
if ($arguments.ContainsKey('licenseCode')) {
    if (-not ($arguments.ContainsKey('licensekey'))) {
        # create licensekey key with licenseCode value
        $arguments.licensekey = $arguments.licenseCode
    }
    $arguments.Remove('licenseCode')
}

foreach ($param in $arguments.Keys) {
    switch ($param) {
        "Licensekey" {
            $licenseKey = $arguments["licensekey"]
            Write-Verbose "Parameter - License Key: $licenseKey"
            $packageArgs.silentArgs = "TSC_SOFTWARE_KEY=$licenseKey " + $packageArgs.silentArgs
        }

        'NoDesktopShortcut' {
            Write-Verbose "Parameter - Desktop Shortcut: Disabled (note Snagit no longer creates a desktop icon by default so this option no longer does anything)."
        }

        'DisableAutoStart' {
            Write-Verbose "Parameter - Autostart with Windows: false"
            $packageArgs.silentArgs = "TSC_START_AUTO=0 " + $packageArgs.silentArgs
        }

        'DisableStartNow' {
            Write-Verbose "Parameter - Start after installation: false"
            $packageArgs.silentArgs = "START_NOW=0 " + $packageArgs.silentArgs
        }

        'Language' {
            $validLanguage = @( 'ENU', 'DEU', 'ESP', 'FRA', 'JPN', 'PTB' )
            if ($arguments['language'] -in $validLanguage) {
                Write-Verbose "Parameter - Application Language: $($arguments['language'])"
                $packageArgs.silentArgs = "TSC_APP_LANGUAGE=$($arguments['language']) " + $packageArgs.silentArgs
            }
            else {
                Write-Error "Parameter - Application Language is invalid. Valid languages are $($validLanguage -join ', ')."
            }
        }

        'HideRegistrationKey' {
            Write-Verbose "Parameter - Hide registration key: true"
            $packageArgs.silentArgs = "TSC_HIDE_REGISTRATION_KEY=1 " + $packageArgs.silentArgs
        }
    }
}

Install-ChocolateyPackage @packageArgs

2022-07-11 12:14:03,375 27844 [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\snagit\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters ''']
2022-07-11 12:14:03,377 27844 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2022-07-11 12:14:03,475 27844 [DEBUG] - Host version is 5.1.22621.1, PowerShell Version is '5.1.22621.169' and CLR Version is '4.0.30319.42000'.
2022-07-11 12:14:03,769 27844 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-07-11 12:14:03,770 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-07-11 12:14:03,770 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-07-11 12:14:03,770 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-07-11 12:14:03,770 27844 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-07-11 12:14:03,771 27844 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-07-11 12:14:03,771 27844 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-07-11 12:14:03,771 27844 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-07-11 12:14:03,771 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-07-11 12:14:03,772 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-07-11 12:14:03,772 27844 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-07-11 12:14:03,772 27844 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-07-11 12:14:03,772 27844 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-07-11 12:14:03,773 27844 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-07-11 12:14:03,773 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-07-11 12:14:03,773 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-07-11 12:14:03,773 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-07-11 12:14:03,774 27844 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-07-11 12:14:03,774 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:03,774 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-07-11 12:14:03,774 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-07-11 12:14:03,775 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-07-11 12:14:03,776 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-07-11 12:14:03,776 27844 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-07-11 12:14:03,777 27844 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-07-11 12:14:03,777 27844 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-07-11 12:14:03,777 27844 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-07-11 12:14:03,777 27844 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-07-11 12:14:03,778 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-07-11 12:14:03,778 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:03,778 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-07-11 12:14:03,778 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-07-11 12:14:03,779 27844 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-07-11 12:14:03,779 27844 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-07-11 12:14:03,779 27844 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-07-11 12:14:03,780 27844 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-07-11 12:14:03,780 27844 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-07-11 12:14:03,780 27844 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-07-11 12:14:03,780 27844 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-07-11 12:14:03,780 27844 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-07-11 12:14:03,781 27844 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-07-11 12:14:03,781 27844 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-07-11 12:14:03,781 27844 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-07-11 12:14:03,785 27844 [DEBUG] - Loading community extensions
2022-07-11 12:14:03,792 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'
2022-07-11 12:14:03,792 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.
2022-07-11 12:14:03,822 27844 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export.
2022-07-11 12:14:03,822 27844 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export.
2022-07-11 12:14:03,823 27844 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility
2022-07-11 12:14:03,824 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-07-11 12:14:03,824 27844 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility
2022-07-11 12:14:03,830 27844 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-07-11 12:14:03,830 27844 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility
2022-07-11 12:14:03,835 27844 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-07-11 12:14:03,835 27844 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility
2022-07-11 12:14:03,840 27844 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-07-11 12:14:03,841 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-07-11 12:14:03,841 27844 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-07-11 12:14:03,841 27844 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-07-11 12:14:03,841 27844 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-07-11 12:14:03,842 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2022-07-11 12:14:03,842 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2022-07-11 12:14:03,907 27844 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-07-11 12:14:03,907 27844 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-07-11 12:14:03,908 27844 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-07-11 12:14:03,908 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-07-11 12:14:03,908 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-07-11 12:14:03,909 27844 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-07-11 12:14:03,909 27844 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-07-11 12:14:03,910 27844 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-07-11 12:14:03,910 27844 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-07-11 12:14:03,910 27844 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-07-11 12:14:03,910 27844 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-07-11 12:14:03,911 27844 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-07-11 12:14:03,911 27844 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-07-11 12:14:03,911 27844 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-07-11 12:14:03,911 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2022-07-11 12:14:03,912 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2022-07-11 12:14:03,946 27844 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-07-11 12:14:03,946 27844 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-07-11 12:14:03,946 27844 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-07-11 12:14:03,947 27844 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-07-11 12:14:03,947 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'
2022-07-11 12:14:03,948 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-misc-helpers\chocolatey-misc-helpers.psm1'.
2022-07-11 12:14:04,006 27844 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-07-11 12:14:04,007 27844 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-07-11 12:14:04,007 27844 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-07-11 12:14:04,007 27844 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-07-11 12:14:04,008 27844 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-07-11 12:14:04,008 27844 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-07-11 12:14:04,008 27844 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-07-11 12:14:04,009 27844 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-07-11 12:14:04,009 27844 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-07-11 12:14:04,009 27844 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-07-11 12:14:04,009 27844 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-07-11 12:14:04,010 27844 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-07-11 12:14:04,010 27844 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-07-11 12:14:04,010 27844 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-07-11 12:14:04,010 27844 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-07-11 12:14:04,011 27844 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-07-11 12:14:04,011 27844 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-07-11 12:14:04,011 27844 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-07-11 12:14:04,011 27844 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-07-11 12:14:04,011 27844 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-07-11 12:14:04,012 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-vscode\chocolatey-vscode.psm1'
2022-07-11 12:14:04,012 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-vscode\chocolatey-vscode.psm1'.
2022-07-11 12:14:04,036 27844 [INFO ] - VERBOSE: Exporting function 'Install-VsCodeExtension'.
2022-07-11 12:14:04,036 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-VsCodeExtension'.
2022-07-11 12:14:04,037 27844 [INFO ] - VERBOSE: Importing function 'Install-VsCodeExtension'.
2022-07-11 12:14:04,037 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-VsCodeExtension'.
2022-07-11 12:14:04,038 27844 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2022-07-11 12:14:04,038 27844 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2022-07-11 12:14:04,084 27844 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-07-11 12:14:04,084 27844 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-07-11 12:14:04,085 27844 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-07-11 12:14:04,085 27844 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-07-11 12:14:04,085 27844 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2022-07-11 12:14:04,086 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2022-07-11 12:14:04,086 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2022-07-11 12:14:04,086 27844 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2022-07-11 12:14:04,086 27844 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2022-07-11 12:14:04,087 27844 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2022-07-11 12:14:04,087 27844 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2022-07-11 12:14:04,087 27844 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2022-07-11 12:14:04,087 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2022-07-11 12:14:04,088 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2022-07-11 12:14:04,088 27844 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2022-07-11 12:14:04,088 27844 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2022-07-11 12:14:04,088 27844 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2022-07-11 12:14:04,088 27844 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2022-07-11 12:14:04,089 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2022-07-11 12:14:04,089 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2022-07-11 12:14:04,089 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2022-07-11 12:14:04,089 27844 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2022-07-11 12:14:04,090 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:04,090 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2022-07-11 12:14:04,090 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2022-07-11 12:14:04,090 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2022-07-11 12:14:04,091 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2022-07-11 12:14:04,091 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2022-07-11 12:14:04,091 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2022-07-11 12:14:04,091 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2022-07-11 12:14:04,091 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2022-07-11 12:14:04,092 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2022-07-11 12:14:04,092 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2022-07-11 12:14:04,092 27844 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2022-07-11 12:14:04,092 27844 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2022-07-11 12:14:04,093 27844 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2022-07-11 12:14:04,093 27844 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2022-07-11 12:14:04,093 27844 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2022-07-11 12:14:04,093 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2022-07-11 12:14:04,093 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:04,094 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2022-07-11 12:14:04,094 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2022-07-11 12:14:04,094 27844 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2022-07-11 12:14:04,094 27844 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2022-07-11 12:14:04,095 27844 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2022-07-11 12:14:04,095 27844 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2022-07-11 12:14:04,095 27844 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2022-07-11 12:14:04,095 27844 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2022-07-11 12:14:04,096 27844 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2022-07-11 12:14:04,096 27844 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2022-07-11 12:14:04,096 27844 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2022-07-11 12:14:04,096 27844 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2022-07-11 12:14:04,097 27844 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2022-07-11 12:14:04,097 27844 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2022-07-11 12:14:04,097 27844 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2022-07-11 12:14:04,097 27844 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2022-07-11 12:14:04,097 27844 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2022-07-11 12:14:04,098 27844 [INFO ] - VERBOSE: Exporting function 'Enable-AutoPin'.
2022-07-11 12:14:04,098 27844 [INFO ] - VERBOSE: Exporting function 'Show-Patreon'.
2022-07-11 12:14:04,098 27844 [INFO ] - VERBOSE: Exporting function 'Show-PayPal'.
2022-07-11 12:14:04,099 27844 [INFO ] - VERBOSE: Exporting function 'Show-ToastMessage'.
2022-07-11 12:14:04,099 27844 [INFO ] - VERBOSE: Exporting function 'Start-CheckandStop'.
2022-07-11 12:14:04,099 27844 [INFO ] - VERBOSE: Exporting function 'Start-CheckandThrow'.
2022-07-11 12:14:04,100 27844 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStop'.
2022-07-11 12:14:04,100 27844 [INFO ] - VERBOSE: Exporting function 'Start-WaitandStopActual'.
2022-07-11 12:14:04,100 27844 [INFO ] - VERBOSE: Exporting function 'Test-Dependency'.
2022-07-11 12:14:04,100 27844 [INFO ] - VERBOSE: Exporting function 'Test-URL'.
2022-07-11 12:14:04,101 27844 [INFO ] - VERBOSE: Exporting function 'Install-VsCodeExtension'.
2022-07-11 12:14:04,101 27844 [INFO ] - VERBOSE: Exporting function 'Uninstall-VsCodeExtension'.
2022-07-11 12:14:04,101 27844 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2022-07-11 12:14:04,101 27844 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2022-07-11 12:14:04,102 27844 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2022-07-11 12:14:04,102 27844 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2022-07-11 12:14:04,102 27844 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2022-07-11 12:14:04,102 27844 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2022-07-11 12:14:04,103 27844 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2022-07-11 12:14:04,103 27844 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2022-07-11 12:14:04,103 27844 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2022-07-11 12:14:04,103 27844 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2022-07-11 12:14:04,103 27844 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2022-07-11 12:14:04,104 27844 [INFO ] - VERBOSE: Importing function 'Enable-AutoPin'.
2022-07-11 12:14:04,104 27844 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2022-07-11 12:14:04,104 27844 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2022-07-11 12:14:04,104 27844 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2022-07-11 12:14:04,105 27844 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2022-07-11 12:14:04,105 27844 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2022-07-11 12:14:04,105 27844 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2022-07-11 12:14:04,105 27844 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2022-07-11 12:14:04,106 27844 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2022-07-11 12:14:04,106 27844 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2022-07-11 12:14:04,106 27844 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2022-07-11 12:14:04,106 27844 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2022-07-11 12:14:04,106 27844 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2022-07-11 12:14:04,107 27844 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2022-07-11 12:14:04,107 27844 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2022-07-11 12:14:04,107 27844 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2022-07-11 12:14:04,107 27844 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2022-07-11 12:14:04,108 27844 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2022-07-11 12:14:04,108 27844 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2022-07-11 12:14:04,108 27844 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2022-07-11 12:14:04,108 27844 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2022-07-11 12:14:04,108 27844 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2022-07-11 12:14:04,109 27844 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2022-07-11 12:14:04,109 27844 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2022-07-11 12:14:04,109 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2022-07-11 12:14:04,109 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:04,110 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2022-07-11 12:14:04,110 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2022-07-11 12:14:04,110 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2022-07-11 12:14:04,110 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2022-07-11 12:14:04,111 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2022-07-11 12:14:04,111 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2022-07-11 12:14:04,111 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2022-07-11 12:14:04,112 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2022-07-11 12:14:04,112 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2022-07-11 12:14:04,112 27844 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2022-07-11 12:14:04,112 27844 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2022-07-11 12:14:04,112 27844 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2022-07-11 12:14:04,113 27844 [INFO ] - VERBOSE: Importing function 'Install-VsCodeExtension'.
2022-07-11 12:14:04,113 27844 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2022-07-11 12:14:04,113 27844 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2022-07-11 12:14:04,113 27844 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2022-07-11 12:14:04,114 27844 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2022-07-11 12:14:04,114 27844 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2022-07-11 12:14:04,114 27844 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2022-07-11 12:14:04,114 27844 [INFO ] - VERBOSE: Importing function 'Show-Patreon'.
2022-07-11 12:14:04,115 27844 [INFO ] - VERBOSE: Importing function 'Show-PayPal'.
2022-07-11 12:14:04,115 27844 [INFO ] - VERBOSE: Importing function 'Show-ToastMessage'.
2022-07-11 12:14:04,115 27844 [INFO ] - VERBOSE: Importing function 'Start-CheckandStop'.
2022-07-11 12:14:04,115 27844 [INFO ] - VERBOSE: Importing function 'Start-CheckandThrow'.
2022-07-11 12:14:04,116 27844 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2022-07-11 12:14:04,116 27844 [INFO ] - VERBOSE: Importing function 'Start-WaitandStop'.
2022-07-11 12:14:04,116 27844 [INFO ] - VERBOSE: Importing function 'Start-WaitandStopActual'.
2022-07-11 12:14:04,116 27844 [INFO ] - VERBOSE: Importing function 'Test-Dependency'.
2022-07-11 12:14:04,117 27844 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2022-07-11 12:14:04,117 27844 [INFO ] - VERBOSE: Importing function 'Test-URL'.
2022-07-11 12:14:04,117 27844 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2022-07-11 12:14:04,117 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2022-07-11 12:14:04,117 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2022-07-11 12:14:04,118 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2022-07-11 12:14:04,118 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2022-07-11 12:14:04,118 27844 [INFO ] - VERBOSE: Importing function 'Uninstall-VsCodeExtension'.
2022-07-11 12:14:04,118 27844 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2022-07-11 12:14:04,119 27844 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2022-07-11 12:14:04,119 27844 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2022-07-11 12:14:04,119 27844 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2022-07-11 12:14:04,119 27844 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2022-07-11 12:14:04,119 27844 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2022-07-11 12:14:04,120 27844 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2022-07-11 12:14:04,120 27844 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2022-07-11 12:14:04,120 27844 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2022-07-11 12:14:04,120 27844 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2022-07-11 12:14:04,121 27844 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2022-07-11 12:14:04,121 27844 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2022-07-11 12:14:04,121 27844 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2022-07-11 12:14:04,121 27844 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2022-07-11 12:14:04,136 27844 [DEBUG] - ---------------------------Script Execution---------------------------
2022-07-11 12:14:04,137 27844 [DEBUG] - Running 'ChocolateyScriptRunner' for snagit v2022.1.0 with packageScript 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\snagit', installArguments: '', packageParameters: '',
2022-07-11 12:14:04,139 27844 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1'
2022-07-11 12:14:04,165 27844 [DEBUG] - Running Get-PackageParameters -parameters '' 
2022-07-11 12:14:04,166 27844 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2022-07-11 12:14:04,179 27844 [DEBUG] - Running Install-ChocolateyPackage -checksumType64 'sha256' -url64bit 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' -checksum64 'efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94' -silentArgs '/quiet /passive /norestart' -fileType 'EXE' -validExitCodes '0 3010 1641' -packageName 'snagit' 
2022-07-11 12:14:04,198 27844 [DEBUG] - Running Get-ChocolateyWebFile -packageName 'snagit' -fileFullPath 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagitInstall.EXE' -url '' -url64bit 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' -checksum '' -checksumType '' -checksum64 'efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94' -checksumType64 'sha256' -options 'System.Collections.Hashtable' -getOriginalFileName 'True' 
2022-07-11 12:14:04,210 27844 [DEBUG] - Running Get-ProcessorBits -compare '64' 
2022-07-11 12:14:04,215 27844 [DEBUG] - CPU is 64 bit
2022-07-11 12:14:04,216 27844 [DEBUG] - Setting url to 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' and bitPackage to 64
2022-07-11 12:14:04,226 27844 [DEBUG] - Running Get-WebFileName -url 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' -defaultName 'snagitInstall.EXE' 
2022-07-11 12:14:04,392 27844 [DEBUG] - Using response url to determine file name. 'https://download.techsmith.com/snagit/releases/2210/snagit.msi'
2022-07-11 12:14:04,394 27844 [DEBUG] - File name determined from url is 'snagit.msi'
2022-07-11 12:14:04,399 27844 [DEBUG] - Running Get-WebHeaders -url 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' -ErrorAction 'Stop' 
2022-07-11 12:14:04,400 27844 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-07-11 12:14:04,400 27844 [DEBUG] - Request Headers:
2022-07-11 12:14:04,402 27844 [DEBUG] -   'Accept':'*/*'
2022-07-11 12:14:04,402 27844 [DEBUG] -   'User-Agent':'chocolatey command line'
2022-07-11 12:14:04,464 27844 [DEBUG] - Response Headers:
2022-07-11 12:14:04,469 27844 [DEBUG] -   'Connection':'keep-alive'
2022-07-11 12:14:04,469 27844 [DEBUG] -   'Accept-Ranges':'bytes'
2022-07-11 12:14:04,469 27844 [DEBUG] -   'Content-Length':'334700544'
2022-07-11 12:14:04,470 27844 [DEBUG] -   'Cache-Control':'max-age=6266'
2022-07-11 12:14:04,470 27844 [DEBUG] -   'Content-Type':'application/octet-stream'
2022-07-11 12:14:04,470 27844 [DEBUG] -   'Date':'Mon, 11 Jul 2022 16:14:09 GMT'
2022-07-11 12:14:04,471 27844 [DEBUG] -   'ETag':'"05db4ff837cd81:0"'
2022-07-11 12:14:04,472 27844 [DEBUG] -   'Last-Modified':'Fri, 10 Jun 2022 04:38:58 GMT'
2022-07-11 12:14:04,473 27844 [DEBUG] -   'Server':'Microsoft-IIS/8.5'
2022-07-11 12:14:04,476 27844 [INFO ] - Downloading snagit 64 bit
  from 'https://download.techsmith.com/snagit/releases/2210/snagit.msi'
2022-07-11 12:14:04,482 27844 [DEBUG] - Running Get-WebFile -url 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' -fileName 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi' -options 'System.Collections.Hashtable' 
2022-07-11 12:14:04,483 27844 [DEBUG] - Setting request timeout to  30000
2022-07-11 12:14:04,483 27844 [DEBUG] - Setting read/write timeout to  2700000
2022-07-11 12:14:04,484 27844 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-07-11 12:14:04,589 27844 [DEBUG] - Downloading https://download.techsmith.com/snagit/releases/2210/snagit.msi to C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi
2022-07-11 12:14:11,717 27844 [INFO ] - 
2022-07-11 12:14:11,718 27844 [INFO ] - Download of snagit.msi (319.2 MB) completed.
2022-07-11 12:14:14,742 27844 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2022-07-11 12:14:14,744 27844 [DEBUG] - Verifying package provided checksum of 'efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94' for 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi'.
2022-07-11 12:14:14,747 27844 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi' -checksum 'efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94' -checksumType 'sha256' -originalUrl 'https://download.techsmith.com/snagit/releases/2210/snagit.msi' 
2022-07-11 12:14:14,749 27844 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2022-07-11 12:14:14,749 27844 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94" -t="sha256" -f="C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi"]
2022-07-11 12:14:15,079 27844 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="efea9fca69145b2effc11b535d027db35e263cbb80e6f6717be0e11563960c94" -t="sha256" -f="C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi"] exited with '0'.
2022-07-11 12:14:15,088 27844 [DEBUG] - Running Install-ChocolateyInstallPackage -packageName 'snagit' -fileType 'EXE' -silentArgs '/quiet /passive /norestart' -file 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi' -validExitCodes '0 3010 1641' -useOnlyPackageSilentArguments 'False' 
2022-07-11 12:14:15,089 27844 [DEBUG] - Running Get-ProcessorBits -compare '32' 
2022-07-11 12:14:15,091 27844 [INFO ] - Installing snagit...
2022-07-11 12:14:15,111 27844 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 3010 1641' -workingDirectory 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0' -statements '/quiet /passive /norestart ' -exeToRun 'C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi' 
2022-07-11 12:14:15,121 27844 [DEBUG] - Test-ProcessAdminRights: returning True
2022-07-11 12:14:15,125 27844 [DEBUG] - Elevating permissions and running ["C:\Users\me\AppData\Local\Temp\chocolatey\snagit\2022.1.0\snagit.msi" /quiet /passive /norestart ]. This may take a while, depending on the statements.
2022-07-11 12:14:15,285 27844 [ERROR] - ERROR: Exception calling "Start" with "0" argument(s): "The specified executable is not a valid application for this OS platform."
2022-07-11 12:14:15,287 27844 [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\snagit\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2022-07-11 12:14:15,288 27844 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2022-07-11 12:14:15,308 27844 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2022-07-11 12:14:15,354 27844 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\snagit'
2022-07-11 12:14:15,355 27844 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\snagit\snagit.nupkg'
  with checksum '9AA022922AC71E5D1CFBD32F505B2675'
2022-07-11 12:14:15,356 27844 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\snagit\snagit.nuspec'
  with checksum 'FC675D1E199BE9B50DE2045E5F526DC8'
2022-07-11 12:14:15,356 27844 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1'
  with checksum 'F2FEF7FD2A26163A7062BED56A88098E'
2022-07-11 12:14:15,363 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\snagit.2022.1.0\.arguments".
2022-07-11 12:14:15,363 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\snagit.2022.1.0\.extra".
2022-07-11 12:14:15,363 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\snagit.2022.1.0\.version".
2022-07-11 12:14:15,364 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\snagit.2022.1.0\.sxs".
2022-07-11 12:14:15,364 27844 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\snagit.2022.1.0\.pin".
2022-07-11 12:14:15,365 27844 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2022-07-11 12:14:15,365 27844 [ERROR] - The install of snagit was NOT successful.
2022-07-11 12:14:15,367 27844 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1'.
 See log for details.
2022-07-11 12:14:15,368 27844 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2022-07-11 12:14:15,370 27844 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\snagit'
 to 'C:\ProgramData\chocolatey\lib-bad\snagit'
2022-07-11 12:14:17,375 27844 [DEBUG] - Attempting to delete file "C:\Users\me\AppData\Local\NuGet\Cache\snagit.2022.1.0.nupkg".
2022-07-11 12:14:17,379 27844 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2022-07-11 12:14:17,380 27844 [INFO ] - 
2022-07-11 12:14:17,381 27844 [ERROR] - Failures
2022-07-11 12:14:17,381 27844 [ERROR] -  - snagit (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\snagit\tools\chocolateyinstall.ps1'.
 See log for details.
2022-07-11 12:14:17,383 27844 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2022-07-11 12:14:17,392 27844 [DEBUG] - Exiting with -1

Anything else?

No response

pauby commented 2 years ago

I'm going to have to grab a Windows 11 Vagrant box for this. Bear with me.

github-actions[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue will be closed in 14 days if it continues to be inactive.

pauby commented 1 year ago

This problem appears to be on Windows 10 x64 as well (see this Disqus thread) which I've also confirmed.

virtualex-itv commented 1 year ago

@pauby - In the interim, I've rewritten the update.ps1 for my AU setup and have been generating my own package for Snagit using the .msi URL and I haven't had any issues with installation or upgrades since on both Win10 & Win11

pauby commented 1 year ago

Maybe it's a corrupt or bad MSI in the package.....

virtualex-itv commented 1 year ago

it's very well possible, I don't mind sharing my update.ps1 with you (but I believe you've already seen it via a PR I submitted) but I'm pretty sure our AU instances are different.

pauby commented 1 year ago

You use the EXE and this is for the MSI install. So they're not compatible, unless I'm forgetting something?

The checksum for the package that is downloaded is the same for the one downloaded manually and the same one downloaded from the releases page. So the MSI is correct. But maybe it's broken intentionally / unintentionally.

pauby commented 1 year ago

So the results are:

pauby commented 1 year ago

Okay. This is now fixed in https://github.com/pauby/ChocoPackages/commit/a9d5e5f8987e458a219487abd5842a4f6d63603a. The issue turned out to be this which came from me playing with the EXE a few versions ago, but not changing it back to MSI. 🤦

A package fix version will go up shortly and I'm going to unlist the broken versions.

pauby commented 1 year ago

This has now been pushed.

@virtualex-itv Can you check it works on Windows 11 too?

virtualex-itv commented 1 year ago

@pauby - confirming that snagit --version 2022.1.2.1010 installs successfully on Win11. This issue can be closed.

pauby commented 1 year ago

Awesome! Thanks for confirming that Alex.