473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to read a registry key of all users?

hi,

I've been coding a C# app. I want to look into a remote machine to see
whether a program is not installed by any of users on that machine. So I have
to read the key HKEY_CURRENT_USER\Software\Microsoft\Installer for all users.
I tried Microsoft.Win32.RegistryKey, but i can't make it. I also thouht of
WMI, still can't help. Could anyone help me?

Thanks in advance
Joe
Jan 8 '07 #1
2 4695
You should read from HKEY_USERS instead...

"CAIBird" <CA*****@discussions.microsoft.com¼¶¼g©ó¶l¥ó·s»D:6 3**********************************@microsoft.com. ..
hi,

I've been coding a C# app. I want to look into a remote machine to see
whether a program is not installed by any of users on that machine. So I
have
to read the key HKEY_CURRENT_USER\Software\Microsoft\Installer for all
users.
I tried Microsoft.Win32.RegistryKey, but i can't make it. I also thouht of
WMI, still can't help. Could anyone help me?

Thanks in advance
Joe

Jan 8 '07 #2
But, are you sure that all users are loaded under the HKEY_USERS? is the any
chance that some users are not loaded?

"Lau Lei Cheong" wrote:
You should read from HKEY_USERS instead...

"CAIBird" <CA*****@discussions.microsoft.com¼¶¼g©ó¶l¥ ó·s»D:63**********************************@micr osoft.com...
hi,

I've been coding a C# app. I want to look into a remote machine to see
whether a program is not installed by any of users on that machine. So I
have
to read the key HKEY_CURRENT_USER\Software\Microsoft\Installer for all
users.
I tried Microsoft.Win32.RegistryKey, but i can't make it. I also thouht of
WMI, still can't help. Could anyone help me?

Thanks in advance
Joe


Jan 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: George Hester | last post by:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available. http://www.doxdesk.com/parasite/ He\She is the only one I trust on the...
3
by: jayanth.vishnuvardhan | last post by:
Hi All, Can any one help me on how to read & write the local machines registry values through scripting language. (vbscript/javscript)? I tried with Wscript.Shell Command & but with this we...
1
by: rdavis7408 | last post by:
I have a database that has a form that opens a report using date parameters. I have been using it for six months and last week I began to get the following Error Message: "File sharing lock...
3
by: Slimo | last post by:
Hello, I'm searching some example of code (VB) for reading remote registry subkeys and keys. Thanks
4
by: akhare1 | last post by:
OK, before I start, let me clarify a few things here. This is not the run of the mill failure to read a registry key while trying to write to the Event Log. Here's our setup: a) IIS 6.0...
2
by: Henry Fleming | last post by:
I have an C# assembly that is supposed to read a registry key: RegistryKey regCurrentUser = Registry.CurrentUser; RegistryKey regSoftware = regCurrentUser.OpenSubKey("Software",true);...
5
by: Sin Jeong-hun | last post by:
I need to read some registry keys of a remote computer. The key will be any key users provide. (For example : HKEY_CURRENT_USER\SOFTWARE \MyGame) I found that there was a handy method called...
4
pritipshah
by: pritipshah | last post by:
Hello All, I want to Access Registry from PHP script. I had sreach on net and I got Class for this which is as below. <?php class Registry { private $vars = array();...
3
by: thephatp | last post by:
BLUF: I need to build up the actual %TEMP% path for all users methodically using values in the registry, and I need to do this both by the current user AND as a service will do this running as...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.