"Couldn't update file associations" for Project files

Whenever I run UnrealVersionSelector.exe /fileassociations (or trigger it through the Epic Games Launcher’s “Fix file associations” popup), it fails with a generic error stating that it could not update file associations.

I’ve also already tried copyingUnrealVersionSelector.exe from the Epic Games Launcher folder (C:\Program Files\Epic Games\Launcher\Engine\Binaries\Win64\) into the Engine binaries folder (...\UE_5.x\Engine\Binaries\Win64\) and ran /register and /fileassociations as Administrator with no success.

I’ve also uninstalled/reinstalled multiple UE_5.x versions, but that hasn’t worked either.

I should also note that I had to do a full nuke/reinstall of Windows in the past 1-2 weeks on my C:\ drive, but I kept my engines/projects on a separate drive. After reinstalling Windows and Epic Games Launcher is when my issue started occurring.

Update:

Had to go into my registry and clean out the `.uproject` and`.uplugin` keys in `Computer\HKEY_CURRENT_USER\Software\Classes\`

After than, the auto-fix process that Epic Games Launcher does on boot went smoothly.

Hi

I experienced the same issue.
However, I couldn’t find any “.uproject” or “.uplugin” files in “Computer\HKEY_CURRENT_USER\Software\Classes\”.
Do you know how to resolve this?
I apologize for reaching out out of the blue.

Thank you in advance.

Try the following. I find trudging through the registry manually I usually wind up missing something. Run this from an admin PowerShell terminal.

$keys = @(
‘HKCU:\Software\Classes.uproject’,
‘HKCU:\Software\Classes.uplugin’
)

foreach ($key in $keys) {
Write-Host “`n=== $key ===” -ForegroundColor Cyan

if (Test-Path $key) {
    Get-ItemProperty $key | Format-List
    Get-ChildItem $key -Recurse |
        Select-Object Name
}
else {
    Write-Host "Not present"
}

}

You’re looking for the keys above. If it finds anything, run the following.

$backup = Join-Path $env:USERPROFILE ‘Desktop\UnrealAssociationBackup’
New-Item -ItemType Directory -Path $backup -Force | Out-Null

$keys = @(
@{
Registry = ‘HKCU\Software\Classes.uproject’
File = ‘uproject.reg’
},
@{
Registry = ‘HKCU\Software\Classes.uplugin’
File = ‘uplugin.reg’
}
)

foreach ($entry in $keys) {
reg query $entry.Registry *> $null

if ($LASTEXITCODE -eq 0) {
    $destination = Join-Path $backup $entry.File

    & reg.exe export $entry.Registry $destination /y

    if ($LASTEXITCODE -ne 0) {
        throw "Backup failed: $($entry.Registry)"
    }

    & reg.exe delete $entry.Registry /f

    if ($LASTEXITCODE -ne 0) {
        throw "Removal failed: $($entry.Registry)"
    }

    Write-Host "Backed up and removed: $($entry.Registry)" -ForegroundColor Green
}
else {
    Write-Host "Not present: $($entry.Registry)" -ForegroundColor Yellow
}

}