diff --git a/automatic/webstorm/tools/ChocolateyInstall.ps1 b/automatic/webstorm/tools/ChocolateyInstall.ps1 index d39a10f753f..d29729e2a32 100644 --- a/automatic/webstorm/tools/ChocolateyInstall.ps1 +++ b/automatic/webstorm/tools/ChocolateyInstall.ps1 @@ -6,7 +6,9 @@ $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $programFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0] $pp = Get-PackageParameters -$installDir = "$programFiles\JetBrains\WebStorm $env:ChocolateyPackageVersion" +# If the release version ends in '.0', remove this since JetBrains don't +# use this part of the version number when creating the installation directory. +$installDir = "$programFiles\JetBrains\WebStorm $($env:ChocolateyPackageVersion -replace '.0$', '')" if ($pp.InstallDir) { $installDir = $pp.InstallDir }