Determining the Location of the Update Client
Posted: Sun Jan 19, 2014 5:36 pm
Hi,
Since upgrading to Win8.1, my registry no longer contains a reference to the uninstall directory in none of the following places:
String uninstallDir = "";
try
{
RegistryKey pRegKey;
pRegKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.LocalMachine.OpenSubKey(
@"Software\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.CurrentUser.OpenSubKey(
@"Software\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
{
RegistryKey localMachineX64View = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
pRegKey = localMachineX64View.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
}
Searching the whole registry for the location has not proved successful either.
Has something changed. Is there an alternative source of this data?
Since upgrading to Win8.1, my registry no longer contains a reference to the uninstall directory in none of the following places:
String uninstallDir = "";
try
{
RegistryKey pRegKey;
pRegKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.LocalMachine.OpenSubKey(
@"Software\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
pRegKey = Registry.CurrentUser.OpenSubKey(
@"Software\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
if (pRegKey == null)
{
RegistryKey localMachineX64View = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
pRegKey = localMachineX64View.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Uninstall\MyCourts", false);
}
Searching the whole registry for the location has not proved successful either.
Has something changed. Is there an alternative source of this data?