Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# registrykey is null

// A 32-bit application on a 64-bit OS will be looking at 
// HKLMSoftwareWow6432Node node by default. 
// To read the 64-bit version of the key,
// you'll need to specify the RegistryView:

var hklm = RegistryKey.OpenBaseKey(
  RegistryHive.LocalMachine, RegistryView.Registry64));

var key = hklm.OpenSubKey(
  @"SOFTWAREMicrosoftWindowsCurrentVersionUninstall"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #registrykey #null
ADD COMMENT
Topic
Name
9+5 =