chocolatey-community / chocolatey-packages

Chocolatey Community Maintainers Team Packages - packages that are managed and maintained by core community team for community package repository (https://community.chocolatey.org/packages)
https://community.chocolatey.org/profiles/chocolatey-community
Apache License 2.0
435 stars 374 forks source link

(webstorm) uninstallation script not working as expected #2208

Closed chaimabouzaidi closed 11 months ago

chaimabouzaidi commented 1 year ago

Chocolatey Version

Other (note in the comments)

Chocolatey License

None

Package Version

2022.3.3 > 2023.1

Current Behaviour

I would like to point out that the Webstorm package uninstallation script (and therefore the Upgrade) does not work as expected. The current behavior is that when upgrading from an older version to a newer one, the new version is installed but the old one is not uninstalled which will occupy more disk memory. The cause is most probably with the "$softwareName" variable in ChocolateyUnInstall.ps1. It needs to be changed from $softwareName = 'JetBrains WebStorm' to $softwareName = 'WebStorm' since [array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName will return no output with $softwareName = 'JetBrains WebStorm*' and therefore UninstallString will be empty.

Expected Behaviour

No response

Steps To Reproduce

  1. choco install webstorm --version 2022.3.3
  2. choco upgrade webstorm

Environment

- Operating System: Windows 10
- PowerShell Version: 5.1.19041.2673
- Shell: 4.4.19(1)-release

Chocolatey Log

Chocolatey v0.11.3
Chocolatey is running on Windows v 10.0.19045.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade webstorm -dfvy
Received arguments: upgrade webstorm -dfvy
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
Performing validation checks.
Global Configuration Validation Checks:
 - Package Exit Code / Exit On Reboot = Checked
System State Validation Checks:
 Reboot Requirement Checks:
 - Pending Computer Rename = Checked
 - Pending Component Based Servicing = Checked
 - Pending Windows Auto Update = Checked
 - Pending File Rename Operations = Ignored
 - Pending Windows Package Installer = Checked
 - Pending Windows Package Installer SysWow64 = Checked
The source 'private repo' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\username\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='private repo'|
SourceType='normal'|Debug='True'|Verbose='True'|Trace='False'|
Force='True'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='webstorm'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='webstorm'|
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.19045.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.11.3.0'|
Information.ChocolateyProductVersion='0.11.3'|
Information.FullName='choco, Version=0.11.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='username'|
Information.UserDomainName='DOMAIN'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\WINDOWS\system32'|
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='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='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'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
_ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
Upgrading the following packages:
webstorm
By upgrading, you accept licenses for the packages.
Using 'private repo'.
- Supports prereleases? 'True'.
- Is ServiceBased? 'True'.
Package 'webstorm' found on source 'private repo'

You have webstorm v2022.3.3 installed. Version 2023.1 is available based on your source(s).
Backing up existing webstorm prior to operation.
Moving 'C:\ProgramData\chocolatey\lib\webstorm'
 to 'C:\ProgramData\chocolatey\lib-bkp\webstorm'
Attempting to create directory "C:\ProgramData\chocolatey\lib\webstorm".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\webstorm\WebStorm.nupkg"
 to "C:\ProgramData\chocolatey\lib\webstorm\WebStorm.nupkg".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\webstorm\WebStorm.nuspec"
 to "C:\ProgramData\chocolatey\lib\webstorm\WebStorm.nuspec".
Attempting to create directory "C:\ProgramData\chocolatey\lib\webstorm\tools".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\webstorm\tools\ChocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyInstall.ps1".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\webstorm\tools\ChocolateyUnInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyUnInstall.ps1".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\webstorm\tools\silent.config"
 to "C:\ProgramData\chocolatey\lib\webstorm\tools\silent.config".
Deleting file C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyInstall.ps1
Attempting to delete file "C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyInstall.ps1".
Deleting file C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyUnInstall.ps1
Attempting to delete file "C:\ProgramData\chocolatey\lib\webstorm\tools\ChocolateyUnInstall.ps1".
Capturing package files in 'C:\ProgramData\chocolatey\lib\webstorm'
 Found 'C:\ProgramData\chocolatey\lib\webstorm\WebStorm.nupkg'
  with checksum 'AB37F0E019B7B336EDC49EA05EAECF81'
 Found 'C:\ProgramData\chocolatey\lib\webstorm\WebStorm.nuspec'
  with checksum 'DB7B4C6331F89C89582616ED8846394E'
 Found 'C:\ProgramData\chocolatey\lib\webstorm\tools\silent.config'
  with checksum '0D034AF0E374014C8786DDB3C426F6DF'
[NuGet] Attempting to resolve dependency 'chocolatey-core.extension (≥ 1.3.3)'.
[NuGet] Attempting to resolve dependency 'chocolatey-compatibility.extension (≥ 1.0.0)'.

Progress: Downloading WebStorm 2023.1... 6%
Progress: Downloading WebStorm 2023.1... 43%
Progress: Downloading WebStorm 2023.1... 52%
Progress: Downloading WebStorm 2023.1... 100%
[NuGet] Uninstalling 'webstorm 2022.3.3'.
[NuGet] Removed file 'silent.config' to folder 'C:\ProgramData\chocolatey\lib\webstorm\tools'.
[NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\webstorm\tools'.
[NuGet] Removed file 'webstorm.nuspec' to folder 'C:\ProgramData\chocolatey\lib\webstorm'.
[NuGet] Removed file 'webstorm.nupkg' to folder 'C:\ProgramData\chocolatey\lib\webstorm'.
[NuGet] Removed folder 'C:\ProgramData\chocolatey\lib\webstorm'.
[NuGet] Successfully uninstalled 'webstorm 2022.3.3'.
[NuGet] Installing 'WebStorm 2023.1'.
[NuGet] Added file 'ChocolateyInstall.ps1' to folder 'WebStorm\tools'.
[NuGet] Added file 'ChocolateyUnInstall.ps1' to folder 'WebStorm\tools'.
[NuGet] Added file 'silent.config' to folder 'WebStorm\tools'.
[NuGet] Added file 'WebStorm.nupkg' to folder 'WebStorm'.
[NuGet] Added file 'WebStorm.nuspec' to folder 'WebStorm'.
[NuGet] Successfully installed 'WebStorm 2023.1'.

WebStorm v2023.1 (forced)
webstorm package files upgrade completed. Performing other installation steps.
Setting installer args for WebStorm
Setting package parameters for WebStorm
Contents of 'C:\ProgramData\chocolatey\lib\WebStorm\tools\ChocolateyInstall.ps1':
$ErrorActionPreference  = 'Stop'

$toolsDir     = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# Workaround for https://youtrack.jetbrains.com/issue/IDEA-202935
$programFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]
$pp = Get-PackageParameters

$installDir = "$programFiles\JetBrains\WebStorm $env:ChocolateyPackageVersion"
if ($pp.InstallDir) {
    $installDir = $pp.InstallDir
}

$silentArgs   = "/S /CONFIG=$toolsDir\silent.config "
$silentArgs   += "/D=`"$installDir`""

New-Item -ItemType Directory -Force -Path $installDir

$arguments              = @{
    packageName         = $env:ChocolateyPackageName
    softwareName        = 'JetBrains WebStorm*'
    url                 = 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe'
    checksum            = 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c'
    fileType            = 'exe'
    checksumType        = 'sha256'
    silentArgs          = $silentArgs
    validExitCodes      = @(0, 1641, 3010)
}

Install-ChocolateyPackage @arguments

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\WebStorm\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''']
Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.2673' and CLR Version is '4.0.30319.42000'.
VERBOSE: Exporting function 'Format-FileSize'.
VERBOSE: Exporting function 'Get-ChecksumValid'.
VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
VERBOSE: Exporting function 'Get-EnvironmentVariable'.
VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
VERBOSE: Exporting function 'Get-FtpFile'.
VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
VERBOSE: Exporting function 'Get-ToolsLocation'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
VERBOSE: Exporting function 'Get-WebFileName'.
VERBOSE: Exporting function 'Get-WebHeaders'.
VERBOSE: Exporting function 'Install-BinFile'.
VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPath'.
VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Install-Vsix'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Set-PowerShellExitCode'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-BinFile'.
VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Update-SessionEnvironment'.
VERBOSE: Exporting function 'Write-ChocolateyFailure'.
VERBOSE: Exporting function 'Write-ChocolateySuccess'.
VERBOSE: Exporting function 'Write-FileUpdateLog'.
VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
VERBOSE: Exporting alias 'Get-ProcessorBits'.
VERBOSE: Exporting alias 'Get-OSBitness'.
VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
VERBOSE: Exporting alias 'Remove-BinFile'.
VERBOSE: Exporting alias 'refreshenv'.
Loading community extensions
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.
Function 'Get-PackageParameters' exists, ignoring export.
Function 'Get-UninstallRegistryKey' exists, ignoring export.
Function 'Install-ChocolateyDesktopLink' exists, ignoring export.
Function 'Write-ChocolateyFailure' exists, ignoring export.
Function 'Write-ChocolateySuccess' exists, ignoring export.
Function 'Write-FileUpdateLog' exists, ignoring export.
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
VERBOSE: Exporting function 'Get-EffectiveProxy'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Exporting function 'Remove-Process'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-AvailableDriveLetter'.
VERBOSE: Importing function 'Get-EffectiveProxy'.
VERBOSE: Importing function 'Get-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-WebContent'.
VERBOSE: Importing function 'Register-Application'.
VERBOSE: Importing function 'Remove-Process'.
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
VERBOSE: Exporting function 'Install-DotNetFramework'.
VERBOSE: Exporting function 'Install-DotNetDevPack'.
VERBOSE: Importing function 'Install-DotNetDevPack'.
VERBOSE: Importing function 'Install-DotNetFramework'.
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'.
VERBOSE: Exporting function 'Add-VisualStudioComponent'.
VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
VERBOSE: Exporting function 'Get-VisualStudioInstance'.
VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
VERBOSE: Exporting function 'Install-VisualStudio'.
VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
VERBOSE: Exporting function 'Uninstall-VisualStudio'.
VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
VERBOSE: Importing function 'Add-VisualStudioComponent'.
VERBOSE: Importing function 'Add-VisualStudioWorkload'.
VERBOSE: Importing function 'Get-VisualStudioInstaller'.
VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
VERBOSE: Importing function 'Get-VisualStudioInstance'.
VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
VERBOSE: Importing function 'Install-VisualStudio'.
VERBOSE: Importing function 'Install-VisualStudioInstaller'.
VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
VERBOSE: Importing function 'Remove-VisualStudioComponent'.
VERBOSE: Importing function 'Remove-VisualStudioProduct'.
VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
VERBOSE: Importing function 'Uninstall-VisualStudio'.
VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
VERBOSE: Exporting function 'Install-WindowsUpdate'.
VERBOSE: Exporting function 'Test-WindowsUpdate'.
VERBOSE: Importing function 'Install-WindowsUpdate'.
VERBOSE: Importing function 'Test-WindowsUpdate'.
VERBOSE: Exporting function 'Format-FileSize'.
VERBOSE: Exporting function 'Get-ChecksumValid'.
VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
VERBOSE: Exporting function 'Get-EnvironmentVariable'.
VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
VERBOSE: Exporting function 'Get-FtpFile'.
VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
VERBOSE: Exporting function 'Get-PackageParameters'.
VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
VERBOSE: Exporting function 'Get-ToolsLocation'.
VERBOSE: Exporting function 'Get-UACEnabled'.
VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
VERBOSE: Exporting function 'Get-VirusCheckValid'.
VERBOSE: Exporting function 'Get-WebFile'.
VERBOSE: Exporting function 'Get-WebFileName'.
VERBOSE: Exporting function 'Get-WebHeaders'.
VERBOSE: Exporting function 'Install-BinFile'.
VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPackage'.
VERBOSE: Exporting function 'Install-ChocolateyPath'.
VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Install-Vsix'.
VERBOSE: Exporting function 'Set-EnvironmentVariable'.
VERBOSE: Exporting function 'Set-PowerShellExitCode'.
VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Exporting function 'Test-ProcessAdminRights'.
VERBOSE: Exporting function 'Uninstall-BinFile'.
VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Exporting function 'Update-SessionEnvironment'.
VERBOSE: Exporting function 'Write-ChocolateyFailure'.
VERBOSE: Exporting function 'Write-ChocolateySuccess'.
VERBOSE: Exporting function 'Write-FileUpdateLog'.
VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
VERBOSE: Exporting function 'Get-AppInstallLocation'.
VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
VERBOSE: Exporting function 'Get-EffectiveProxy'.
VERBOSE: Exporting function 'Get-PackageCacheLocation'.
VERBOSE: Exporting function 'Get-WebContent'.
VERBOSE: Exporting function 'Register-Application'.
VERBOSE: Exporting function 'Remove-Process'.
VERBOSE: Exporting function 'Install-DotNetDevPack'.
VERBOSE: Exporting function 'Install-DotNetFramework'.
VERBOSE: Exporting function 'Add-VisualStudioComponent'.
VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
VERBOSE: Exporting function 'Get-VisualStudioInstance'.
VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
VERBOSE: Exporting function 'Install-VisualStudio'.
VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
VERBOSE: Exporting function 'Uninstall-VisualStudio'.
VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
VERBOSE: Exporting function 'Install-WindowsUpdate'.
VERBOSE: Exporting function 'Test-WindowsUpdate'.
VERBOSE: Exporting alias 'Get-ProcessorBits'.
VERBOSE: Exporting alias 'Get-OSBitness'.
VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
VERBOSE: Exporting alias 'Generate-BinFile'.
VERBOSE: Exporting alias 'Add-BinFile'.
VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
VERBOSE: Exporting alias 'Remove-BinFile'.
VERBOSE: Exporting alias 'refreshenv'.
VERBOSE: Importing function 'Add-VisualStudioComponent'.
VERBOSE: Importing function 'Add-VisualStudioWorkload'.
VERBOSE: Importing function 'Format-FileSize'.
VERBOSE: Importing function 'Get-AppInstallLocation'.
VERBOSE: Importing function 'Get-AvailableDriveLetter'.
VERBOSE: Importing function 'Get-ChecksumValid'.
VERBOSE: Importing function 'Get-ChocolateyUnzip'.
VERBOSE: Importing function 'Get-ChocolateyWebFile'.
VERBOSE: Importing function 'Get-EffectiveProxy'.
VERBOSE: Importing function 'Get-EnvironmentVariable'.
VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
VERBOSE: Importing function 'Get-FtpFile'.
VERBOSE: Importing function 'Get-OSArchitectureWidth'.
VERBOSE: Importing function 'Get-PackageCacheLocation'.
VERBOSE: Importing function 'Get-PackageParameters'.
VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
VERBOSE: Importing function 'Get-ToolsLocation'.
VERBOSE: Importing function 'Get-UACEnabled'.
VERBOSE: Importing function 'Get-UninstallRegistryKey'.
VERBOSE: Importing function 'Get-VirusCheckValid'.
VERBOSE: Importing function 'Get-VisualStudioInstaller'.
VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
VERBOSE: Importing function 'Get-VisualStudioInstance'.
VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
VERBOSE: Importing function 'Get-WebContent'.
VERBOSE: Importing function 'Get-WebFile'.
VERBOSE: Importing function 'Get-WebFileName'.
VERBOSE: Importing function 'Get-WebHeaders'.
VERBOSE: Importing function 'Install-BinFile'.
VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
VERBOSE: Importing function 'Install-ChocolateyPackage'.
VERBOSE: Importing function 'Install-ChocolateyPath'.
VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
VERBOSE: Importing function 'Install-ChocolateyShortcut'.
VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
VERBOSE: Importing function 'Install-DotNetDevPack'.
VERBOSE: Importing function 'Install-DotNetFramework'.
VERBOSE: Importing function 'Install-VisualStudio'.
VERBOSE: Importing function 'Install-VisualStudioInstaller'.
VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
VERBOSE: Importing function 'Install-Vsix'.
VERBOSE: Importing function 'Install-WindowsUpdate'.
VERBOSE: Importing function 'Register-Application'.
VERBOSE: Importing function 'Remove-Process'.
VERBOSE: Importing function 'Remove-VisualStudioComponent'.
VERBOSE: Importing function 'Remove-VisualStudioProduct'.
VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
VERBOSE: Importing function 'Set-EnvironmentVariable'.
VERBOSE: Importing function 'Set-PowerShellExitCode'.
VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
VERBOSE: Importing function 'Test-ProcessAdminRights'.
VERBOSE: Importing function 'Test-WindowsUpdate'.
VERBOSE: Importing function 'Uninstall-BinFile'.
VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
VERBOSE: Importing function 'Uninstall-VisualStudio'.
VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
VERBOSE: Importing function 'Update-SessionEnvironment'.
VERBOSE: Importing function 'Write-ChocolateyFailure'.
VERBOSE: Importing function 'Write-ChocolateySuccess'.
VERBOSE: Importing function 'Write-FileUpdateLog'.
VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
VERBOSE: Importing alias 'Add-BinFile'.
VERBOSE: Importing alias 'Generate-BinFile'.
VERBOSE: Importing alias 'Get-InstallRegistryKey'.
VERBOSE: Importing alias 'Get-OSBitness'.
VERBOSE: Importing alias 'Get-ProcessorBits'.
VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
VERBOSE: Importing alias 'refreshenv'.
VERBOSE: Importing alias 'Remove-BinFile'.
VERBOSE: Importing alias 'Start-ChocolateyProcess'.
---------------------------Script Execution---------------------------
Running 'ChocolateyScriptRunner' for WebStorm v2023.1 with packageScript 'C:\ProgramData\chocolatey\lib\WebStorm\tools\ChocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\WebStorm', installArguments: '', packageParameters: '',
Running 'C:\ProgramData\chocolatey\lib\WebStorm\tools\ChocolateyInstall.ps1'
Running Get-PackageParameters 
Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
C:\Program Files (x86)\JetBrains\WebStorm 2023.1
Running Install-ChocolateyPackage -silentArgs '/S /CONFIG=C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config /D="C:\Program Files (x86)\JetBrains\WebStorm 2023.1"' -checksumType 'sha256' -url 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' -checksum 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c' -packageName 'WebStorm' -validExitCodes '0 1641 3010' -fileType 'exe' 
Running Get-ChocolateyWebFile -packageName 'WebStorm' -fileFullPath 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStormInstall.exe' -url 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' -url64bit '' -checksum 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c' -checksumType 'sha256' -checksum64 '' -checksumType64 '' -options 'System.Collections.Hashtable' -getOriginalFileName 'True' 
Running Get-ProcessorBits -compare '64' 
CPU is 64 bit
Running Get-WebFileName -url 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' -defaultName 'WebStormInstall.exe' 
Using response url to determine file name. 'https://download-cdn.jetbrains.com/webstorm/WebStorm-2023.1.exe'
File name determined from url is 'WebStorm-2023.1.exe'
Running Get-WebHeaders -url 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' -ErrorAction 'Stop' 
Setting the UserAgent to 'chocolatey command line'
Request Headers:
  'Accept':'*/*'
  'User-Agent':'chocolatey command line'
Response Headers:
  'Connection':'keep-alive'
  'x-amz-replication-status':'COMPLETED'
  'x-amz-server-side-encryption':'AES256'
  'x-amz-version-id':'KCffwKmzvP7Fw8CJPRsCWE2tRHf6Bnvh'
  'X-Cache':'Hit from cloudfront'
  'X-Amz-Cf-Pop':'MUC50-P2'
  'X-Amz-Cf-Id':'TduuBRFlEeDOatxMqPtHya7kVxqPnNSlGz5Q0EhrGK-XQgukLrUjiQ=='
  'Age':'30493'
  'Accept-Ranges':'bytes'
  'Content-Length':'422153776'
  'Content-Type':'binary/octet-stream'
  'Date':'Mon, 03 Apr 2023 23:10:20 GMT'
  'ETag':'"4da9457834ad593b717e80a59bdb5b66-51"'
  'Last-Modified':'Tue, 28 Mar 2023 14:01:48 GMT'
  'Server':'AmazonS3'
  'Via':'1.1 67393fa6b3a865c1a8252acac0aa5cbc.cloudfront.net (CloudFront)'
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Running Get-ChecksumValid -file 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe' -checksum 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c' -checksumType 'sha256' -originalUrl 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' -ErrorAction 'Stop' 
checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c" -t="sha256" -f="C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe"]
Hashes match.
Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c" -t="sha256" -f="C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe"] exited with '0'.
WebStorm's requested file has already been downloaded. Using cached copy at
 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe'.
No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
Verifying package provided checksum of 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c' for 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe'.
Running Get-ChecksumValid -file 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe' -checksum 'a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c' -checksumType 'sha256' -originalUrl 'https://download.jetbrains.com/webstorm/WebStorm-2023.1.exe' 
checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c" -t="sha256" -f="C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe"]
Hashes match.
Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="a9e9024d5373020dc749510b576ee1fc4226240cbc8bf4de128874dd45f06e3c" -t="sha256" -f="C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe"] exited with '0'.
Running Install-ChocolateyInstallPackage -packageName 'WebStorm' -fileType 'exe' -silentArgs '/S /CONFIG=C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config /D="C:\Program Files (x86)\JetBrains\WebStorm 2023.1"' -file 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe' -validExitCodes '0 1641 3010' -useOnlyPackageSilentArguments 'False' 
Running Get-ProcessorBits -compare '32' 
Installing WebStorm...
Error ensuring directories exist -  Exception calling "GetDirectoryName" with "1" argument(s): "The path is not of a legal form."
Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1641 3010' -workingDirectory 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1' -statements '/S /CONFIG=C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config /D="C:\Program Files (x86)\JetBrains\WebStorm 2023.1" ' -exeToRun 'C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe' 
Test-ProcessAdminRights: returning True
Elevating permissions and running ["C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe" /S /CONFIG=C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config /D="C:\Program Files (x86)\JetBrains\WebStorm 2023.1" ]. This may take a while, depending on the statements.
Command ["C:\Users\username\AppData\Local\Temp\chocolatey\WebStorm\2023.1\WebStorm-2023.1.exe" /S /CONFIG=C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config /D="C:\Program Files (x86)\JetBrains\WebStorm 2023.1" ] exited with '0'.
Finishing 'Start-ChocolateyProcessAsAdmin'
WebStorm has been installed.
----------------------------------------------------------------------
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\WebStorm\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'.
Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
  webstorm may be able to be automatically uninstalled.
Capturing package files in 'C:\ProgramData\chocolatey\lib\WebStorm'
 Found 'C:\ProgramData\chocolatey\lib\WebStorm\WebStorm.nupkg'
  with checksum 'B04D2585E44CAF476A993F09506DBE27'
 Found 'C:\ProgramData\chocolatey\lib\WebStorm\WebStorm.nuspec'
  with checksum 'E3BE8EF98A9E51CCE8295F2D2873882B'
 Found 'C:\ProgramData\chocolatey\lib\WebStorm\tools\ChocolateyInstall.ps1'
  with checksum 'DE9D213B06A5E035216808DB37BB8434'
 Found 'C:\ProgramData\chocolatey\lib\WebStorm\tools\ChocolateyUnInstall.ps1'
  with checksum '25108C47F3B093B41402CC1D137CBEDE'
 Found 'C:\ProgramData\chocolatey\lib\WebStorm\tools\silent.config'
  with checksum '0D034AF0E374014C8786DDB3C426F6DF'
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\WebStorm.2023.1\.arguments".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\WebStorm.2023.1\.extra".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\WebStorm.2023.1\.version".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\WebStorm.2023.1\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\WebStorm.2023.1\.pin".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
Attempting to delete file "C:\ProgramData\chocolatey\lib\WebStorm\.chocolateyPending".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\webstorm".
 The upgrade of webstorm was successful.
  Software installed to 'C:\Program Files (x86)\JetBrains\WebStorm 2023.1'
Attempting to delete file "C:\Users\username\AppData\Local\NuGet\Cache\WebStorm.2023.1.nupkg".

Chocolatey upgraded 1/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 0

Anything else?

No response

digitaldrummerj commented 1 year ago

@chaimabouzaidi thank you for reporting this and all of the details.

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.