Formatting

This commit is contained in:
Robin Krom 2022-08-17 23:09:44 +02:00
parent af3c22c38c
commit 296dc9f340
No known key found for this signature in database
GPG key ID: BCC01364F1371490

View file

@ -29,10 +29,8 @@ internal static class OfficeUtils
foreach (string strRootKey in OfficeRootKeys)
{
using RegistryKey rootKey = Registry.LocalMachine.OpenSubKey(strRootKey);
if (rootKey is null) continue;
foreach (string officeVersion in rootKey.GetSubKeyNames().Where(r => r.Contains(".")).Reverse())
{
using RegistryKey installRootKey = Registry.LocalMachine.OpenSubKey($@"{strRootKey}\{officeVersion}\{strKeyName}\InstallRoot");