Winify – Diff between revs 61 and 67
?pathlinks?
Rev 61 | Rev 67 | |||
---|---|---|---|---|
Line 145... | Line 145... | |||
145 | using var localMachineX64View = |
145 | using var localMachineX64View = |
|
146 | RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64); |
146 | RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64); |
|
147 | using var rk = localMachineX64View.OpenSubKey(location); |
147 | using var rk = localMachineX64View.OpenSubKey(location); |
|
148 | if (rk == null) |
148 | if (rk == null) |
|
149 | throw new KeyNotFoundException( |
149 | throw new KeyNotFoundException( |
|
150 | string.Format("Key Not Found: {0}", location)); |
150 | $"Key Not Found: {location}"); |
|
Line 151... | Line 151... | |||
151 | |
151 | |
|
152 | var machineGuid = rk.GetValue(name); |
152 | var machineGuid = rk.GetValue(name); |
|
153 | if (machineGuid == null) |
153 | if (machineGuid == null) |
|
154 | throw new IndexOutOfRangeException( |
154 | throw new IndexOutOfRangeException( |
|
Line 155... | Line 155... | |||
155 | string.Format("Index Not Found: {0}", name)); |
155 | $"Index Not Found: {name}"); |
|
156 | |
156 | |
|
Line 157... | Line 157... | |||
157 | return machineGuid.ToString(); |
157 | return machineGuid.ToString(); |