Skip to content

Commit

Permalink
Go look in wow64 uninstall subkey as well
Browse files Browse the repository at this point in the history
Co-Authored-By: Sergio Padrino <[email protected]>
  • Loading branch information
niik and sergiou87 committed Dec 18, 2024
1 parent f6b9116 commit 86a419a
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions app/src/lib/editors/win32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,19 +548,24 @@ const getJetBrainsToolboxEditors = memoizeOne(async () => {
const re = /^JetBrains Toolbox \((.*)\)/
const editors = new Array<WindowsExternalEditor>()

for (const key of enumerateKeys(HKEY.HKEY_CURRENT_USER, uninstallSubKey)) {
const m = re.exec(key)
if (m) {
const [name, product] = m
editors.push({
name,
installLocationRegistryKey: 'DisplayIcon',
registryKeys: [
{ key: HKEY.HKEY_CURRENT_USER, subKey: `${uninstallSubKey}\\${key}` },
],
displayNamePrefixes: [product],
publishers: ['JetBrains s.r.o.'],
})
for (const parent of [uninstallSubKey, wow64UninstallSubKey]) {
for (const key of enumerateKeys(HKEY.HKEY_CURRENT_USER, parent)) {
const m = re.exec(key)
if (m) {
const [name, product] = m
editors.push({
name,
installLocationRegistryKey: 'DisplayIcon',
registryKeys: [
{
key: HKEY.HKEY_CURRENT_USER,
subKey: `${parent}\\${key}`,
},
],
displayNamePrefixes: [product],
publishers: ['JetBrains s.r.o.'],
})
}
}
}

Expand Down

0 comments on commit 86a419a

Please sign in to comment.