Click here to Skip to main content
15,913,487 members
Home / Discussions / C#
   

C#

 
GeneralRe: A Question About Class Properties Pin
Roger Wright5-Dec-09 2:59
professionalRoger Wright5-Dec-09 2:59 
GeneralRe: A Question About Class Properties Pin
PIEBALDconsult5-Dec-09 4:17
mvePIEBALDconsult5-Dec-09 4:17 
AnswerRe: A Question About Class Properties Pin
Richard Blythe4-Dec-09 18:08
Richard Blythe4-Dec-09 18:08 
GeneralRe: A Question About Class Properties Pin
Roger Wright4-Dec-09 18:24
professionalRoger Wright4-Dec-09 18:24 
GeneralRe: A Question About Class Properties Pin
Richard Blythe4-Dec-09 18:39
Richard Blythe4-Dec-09 18:39 
GeneralRe: A Question About Class Properties Pin
Roger Wright4-Dec-09 18:58
professionalRoger Wright4-Dec-09 18:58 
AnswerRe: A Question About Class Properties Pin
Luc Pattyn5-Dec-09 3:06
sitebuilderLuc Pattyn5-Dec-09 3:06 
QuestionReading x64 registry keys from a x86 computer remotely Pin
Jacob Dixon4-Dec-09 14:53
Jacob Dixon4-Dec-09 14:53 
I am having a little bit of a problem. I am trying to get installed software from computers. The problem is when running it from a x86 machine it defaults to the wow6432node on the x64 server. What I really need is to read both the regular AND the wow6432node for all software installed on the machine.

Here is what I am doing:

string registryKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";

try
{
    Microsoft.Win32.RegistryKey key = Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(Microsoft.Win32.RegistryHive.LocalMachine,
        dnsName.ToString());

    Microsoft.Win32.RegistryKey subKey = key.OpenSubKey(registryKey);
    foreach (string foundValues in subKey.GetSubKeyNames())
    {
        Microsoft.Win32.RegistryKey val = subKey.OpenSubKey(foundValues);

        if (!(val.GetValue("DisplayName") == null))
        {
            ListViewItem item = new ListViewItem();
            item.Text = val.GetValue("DisplayName").ToString();

            if (val.GetValue("InstallLocation") != null)
                item.SubItems.Add(val.GetValue("InstallLocation").ToString());

            Invoke((Action)(() => { lstApplications.Items.Add(item); }));
        }
    }
}
catch (Exception) { }
finally
{
    Invoke((Action)(() => { picProgressApps.Visible = false; }));
}

AnswerRe: Reading x64 registry keys from a x86 computer remotely Pin
Dave Kreskowiak4-Dec-09 17:05
mveDave Kreskowiak4-Dec-09 17:05 
GeneralRe: Reading x64 registry keys from a x86 computer remotely Pin
Jacob Dixon4-Dec-09 18:13
Jacob Dixon4-Dec-09 18:13 
GeneralRe: Reading x64 registry keys from a x86 computer remotely Pin
Dave Kreskowiak5-Dec-09 3:41
mveDave Kreskowiak5-Dec-09 3:41 
GeneralRe: Reading x64 registry keys from a x86 computer remotely Pin
Jacob Dixon5-Dec-09 4:04
Jacob Dixon5-Dec-09 4:04 
QuestionActivating a child form Pin
electriac4-Dec-09 13:20
electriac4-Dec-09 13:20 
AnswerRe: Activating a child form Pin
Luc Pattyn4-Dec-09 13:27
sitebuilderLuc Pattyn4-Dec-09 13:27 
GeneralRe: Activating a child form Pin
electriac4-Dec-09 15:06
electriac4-Dec-09 15:06 
GeneralRe: Activating a child form Pin
Luc Pattyn4-Dec-09 15:45
sitebuilderLuc Pattyn4-Dec-09 15:45 
GeneralRe: Activating a child form Pin
electriac5-Dec-09 0:11
electriac5-Dec-09 0:11 
AnswerRe: Activating a child form Pin
Roger Wright4-Dec-09 17:29
professionalRoger Wright4-Dec-09 17:29 
AnswerRe: Activating a child form Pin
Shameel4-Dec-09 23:08
professionalShameel4-Dec-09 23:08 
GeneralRe: Activating a child form Pin
electriac5-Dec-09 0:07
electriac5-Dec-09 0:07 
GeneralRe: Activating a child form Pin
Shameel5-Dec-09 1:20
professionalShameel5-Dec-09 1:20 
GeneralRe: Activating a child form Pin
electriac5-Dec-09 2:17
electriac5-Dec-09 2:17 
GeneralRe: Activating a child form Pin
electriac5-Dec-09 2:50
electriac5-Dec-09 2:50 
GeneralRe: Activating a child form Pin
Shameel5-Dec-09 3:54
professionalShameel5-Dec-09 3:54 
GeneralRe: Activating a child form Pin
electriac5-Dec-09 3:58
electriac5-Dec-09 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.