• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

JetBrains 2025.2 Software Update

Started by JamieMc, August 22, 2025, 01:47:03 AM

Previous topic - Next topic

JamieMc

Just to make you aware, all JetBrains software (PyCharm, CLIon, InteliJ etc) that is on version 2025.2 doesn't deploy start menu shortcuts.

This appears to be a bug caused by JetBrains them self due to the install location changing from %programfiles(x86)%\JetBrains to %Programfiles%\JetBrains.

This is my fix below, not the prettiest & you might need to change it depending on the apps you have installed.
$StartMenu = 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs'
$AppPath = 'C:\Program Files\JetBrains'
$FirewallRules = Get-NetFirewallRule


if(Test-Path -Path $AppPath)
{

    $apps = Get-ChildItem -Path $AppPath |Select-Object -ExpandProperty Name

    foreach($App in $Apps)
    {

        $AppName = $App.Split(" ") | Select-Object -First 1           
        $AppExe = $AppName + '64.exe'

        if($AppName -eq 'IntelliJ'){ $AppExe = 'idea64.exe'}

        if(Test-Path "$StartMenu\$AppName.lnk"){Remove-Item -Path"$StartMenu\$AppName.lnk"}

        $shell = New-Object -ComObject WScript.Shell
        $shortcut = $shell.CreateShortcut("$StartMenu\$AppName.lnk")
        $shortcut.TargetPath = "$AppPath\$app\bin\$AppExe"
        $shortcut.Save()   

        if(!($FirewallRules | Where-Object {$_.DisplayName -eq $App}))
        {
       
            New-NetFirewallRule -DisplayName $App -Direction Inbound -Program $shortcut.TargetPath -RemoteAddress Any -Action Allow -Profile Domain

        }
       

     } # End Foreach Region


} # End If Region