mirror of
https://github.com/microsoft/PowerToys
synced 2025-08-29 13:37:43 +00:00
[FileExplorer Add-ons][Dev files] Add regfile registry key for previewing .reg files (#20579)
* Add regfile registry key for previewing .reg files * Address PR comments
This commit is contained in:
parent
82fea7eff1
commit
7c0bf9f1f4
@ -378,6 +378,12 @@ namespace registry
|
|||||||
std::wstring kindMapPath = L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\KindMap";
|
std::wstring kindMapPath = L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\KindMap";
|
||||||
changes.push_back({ HKEY_LOCAL_MACHINE, kindMapPath, fileType, fileKindType, false});
|
changes.push_back({ HKEY_LOCAL_MACHINE, kindMapPath, fileType, fileKindType, false});
|
||||||
}
|
}
|
||||||
|
if (handlerType == PreviewHandlerType::preview && fileType == L".reg")
|
||||||
|
{
|
||||||
|
// this regfile registry key has precedence over Software\Classes\.reg for .reg files
|
||||||
|
std::wstring regfilePath = L"Software\\Classes\\regfile\\shellex\\" + IPREVIEW_HANDLER_CLSID + L"\\";
|
||||||
|
changes.push_back({ scope, regfilePath, std::nullopt, handlerClsid });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handlerType == PreviewHandlerType::preview)
|
if (handlerType == PreviewHandlerType::preview)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user