mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 04:52:16 -07:00
Formatting
This commit is contained in:
parent
af3c22c38c
commit
296dc9f340
1 changed files with 0 additions and 2 deletions
|
@ -29,10 +29,8 @@ internal static class OfficeUtils
|
||||||
foreach (string strRootKey in OfficeRootKeys)
|
foreach (string strRootKey in OfficeRootKeys)
|
||||||
{
|
{
|
||||||
using RegistryKey rootKey = Registry.LocalMachine.OpenSubKey(strRootKey);
|
using RegistryKey rootKey = Registry.LocalMachine.OpenSubKey(strRootKey);
|
||||||
|
|
||||||
if (rootKey is null) continue;
|
if (rootKey is null) continue;
|
||||||
|
|
||||||
|
|
||||||
foreach (string officeVersion in rootKey.GetSubKeyNames().Where(r => r.Contains(".")).Reverse())
|
foreach (string officeVersion in rootKey.GetSubKeyNames().Where(r => r.Contains(".")).Reverse())
|
||||||
{
|
{
|
||||||
using RegistryKey installRootKey = Registry.LocalMachine.OpenSubKey($@"{strRootKey}\{officeVersion}\{strKeyName}\InstallRoot");
|
using RegistryKey installRootKey = Registry.LocalMachine.OpenSubKey($@"{strRootKey}\{officeVersion}\{strKeyName}\InstallRoot");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue