 |
|
 |
I have a couple questions... 1) Is "Software\\Microsoft\\Shared Tools Location" for non XP machines? 2) In Windows x64 there is "Software\Wow6432Node\\Microsoft\\Shared Tools Location" but there is no "Software\\Microsoft\\Shared Tools Location" 3) Windows x64 has msinfo32.exe in two locations. The difference between these locations is "Program Files" and "Program Files(x86)" 4) If I wanted to make a program that loaded msinfo32.exe would I want to use the location of "Software\Wow6432Node\\Microsoft\\Shared Tools Location" and "Software\Wow6432Node\\Microsoft\\Shared Tools" or do I only need to use the "Shared Tools" string?
-- modified at 20:07 Wednesday 25th October, 2006 Okay I tested the application and I did need the "Shared Tools Location" public bool GetMsinfo32Path(ref string strPath) { strPath = string.Empty; object objTmp = null; RegistryKey regKey = Registry.LocalMachine; if (regKey != null) { regKey = regKey.OpenSubKey( "Software\\Wow6432Node\\Microsoft\\Shared Tools\\MSInfo"); if (regKey != null) objTmp = regKey.GetValue("Path"); if (objTmp == null) { regKey = regKey.OpenSubKey( "Software\\Wow6432Node\\Microsoft\\Shared Tools Location"); if (regKey != null) { objTmp = regKey.GetValue("MSInfo"); if (objTmp != null) strPath = Path.Combine( objTmp.ToString(), "MSInfo32.exe"); } } else strPath = objTmp.ToString(); Process.Start(strPath); try { FileInfo fi = new FileInfo(strPath); return fi.Exists; } catch (ArgumentException) { strPath = string.Empty; } } return false; } private void systemInfoToolStripMenuItem_Click(object sender, EventArgs e) { string strPath = string.Empty; GetMsinfo32Path(ref strPath); }
-- modified at 20:08 Wednesday 25th October, 2006
|
|
|
|
 |
|
 |
MSINFO32.EXE displays a lot of information which I would like to retrive into a file and parse for information selectively. Is this possible?? If yes, could you pls provide sample code for the same??
Thanks in advance.
|
|
|
|
 |
|
 |
Pity, but it is not possible. There are many articles on the CodeProject describing how to collect system information. Just search for them.
#define __ARMEN_H__
|
|
|
|
 |
|
 |
Actually it is possible. I do it all the time. Here are some of the switches that control output to files and even output of only certain categories (faster).
robo
Syntax: msinfo32 [/?] [/pch] [/nfo Path] [/report Path] [/computer ComputerName] [/showcategories] [/category categoryID] [/categories categoryID] Parameters
Path
Specifies the file to be opened in the format C:\folder1\file1.xxx where C is the drive letter, folder1 is the folder, file1 is the file and xxx is the file's extension.
ComputerName
This can be a Universal Naming Convention name, an IP address, or a Fully Qualified Domain Name.
categoryID
This parameter is obtained by using the /showcategories switch.
/pch
Displays the history view.
/nfo {Path}
Saves the exported file as an .nfo file. If the file name specified in Path does not end in .nfo a .nfo extension will be appended to the filename.
/report {Path}
Saves the file specified in Path in txt format. The file name will be saved exactly as it appears in path. The .txt extension will not be appended to the file unless specified in Path
/computer {ComputerName}
Starts System Information for the specified remote computer.
NOTE: When connecting to a remote computer, you must have appropriate permissions to access WMI on the remote computer.
/showcategories
Starts System Information with the category IDs displayed instead of the friendly names or the localized names. For example, when you use this switch, the Software Environment category is displayed as the SWEnv category. SWEnv is a valid categoryID argument for the /category switch and the /categories switch.
/category {categoryID}
Starts System Information with the specified category selected. Use /showcategories to display a list of available category IDs.
/categories {+categoryID(+categoryID)|+all(-categoryID)}
Starts System Information with only the specified category or categories displayed. It also limits the output to the selected category or categories. Use /showcategories to display a list of available category IDs.
/? Displays a brief summary of MSInfo32 command line options.
NOTE: Some System Information categories contain large amounts of data. You can use the start /wait command to optimize reporting performance for these categories. For more information, see Related Topics.
|
|
|
|
 |
|
 |
when I turned on my comp. today I had a message come up saying that I no longer have a msinfo.exe file
I was wondering if I could download it online or what Do I need to do
help please? email me at darkedge00@yahoo.com
thanks
|
|
|
|
 |
|
 |
have problem with msinfo.exe in system information
|
|
|
|
 |
|
 |
Hello,
PC have two disk.
on windows system, C,D,E contain in first hard disk and
G,H contain in twice hard disk.
in this case,
how to get drive letters(G,H) of twice hard disk?
or
how to know that drive G,H contain in twice hard disk?
thanks in advanced.
Jessonel.
|
|
|
|
 |
|
 |
Hy,
I try to download
Download MFC demo project source code - 32 Kb
it looks like a html file, not a zip?
Where can I download the source code for this?
Zoltan
|
|
|
|
 |
|
 |
I have sent the download files to replace.
#ifndef
#define __ARMEN_H__
#endif
|
|
|
|
 |
|
 |
The demonstration files still cannot be downloaded. The system displays "Page Not Available"
Earl Allen
|
|
|
|
 |
|
 |
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
 |
|
 |
I have alredy reported this problem. But I sent valid archives.
#define __ARMEN_H__
|
|
|
|
 |
|
 |
Hi Armen,
Maybe we're not on the same frequency here . When I click the link above on the top of the article, "Download MFC demo project source code - 32 Kb", it says the page cannot be found...
Cheers,
swine
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
 |
|
 |
Seems to be updated.
#define __ARMEN_H__
|
|
|
|
 |
|
 |
The page you requested cannot be found.
Click here to go to the CodeProject home page, or click here to return to the previous page.
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
 |
|
 |
a call to winmsd.exe with ShellExecute or CreateProcess is much simple, isn't it ?
you don't have to look for the path becouse it is in system32 directory.
|
|
|
|
 |
|
 |
WINMSD.EXE descriptive name is Windows NT Diagnostics program - that means it is installed only on NT platform. By the way - on Windows 2000 computers, the WinMSD tool has been replaced with MSINFO32. Windows 2000 now intercepts the WinMSD.exe command line and starts MSInfo32 instead. What about XP I do not know whether it is present in it - so I do not know is it worth detecting and filtering NT 4.0 and 2000 versions to run winmsd.exe on these platforms instead or just read the path from the registry.
|
|
|
|
 |
|
 |
My laptop is running Whistler and both programs (winmsd.exe and msinfo32.exe) are running well from the command prompt. So my understanding (I haven't spent time to investigate in the registry) is that both are configured in the registry to launch the same program (just as write and wordpad).
Eric
|
|
|
|
 |
|
 |
You think it's worth detecting NT platform and running winmsd.exe, while on Win9x read the path from registry ?
|
|
|
|
 |
|
 |
I guess I wouldn't have read the path from the registry at all. Since you're using ShellExecute, the API has to take care alone of the path of the program (and id does in fact : it's using the "App Path" reg key). So why don't you also rely on it? The only platform on which msinfo32.exe wouldn't run is NT, so either detect this OS at first and change the name of the program to run or check (just as you do) the return value of the ShellExecute call.
In my understanding, I would have done something like this:
void StartSysInfo(void)
{
HINSTANCE hRet = ::ShellExecute(GetSafeHwnd(), _T("open"), _T("msinfo32.exe"),
NULL, NULL, SW_SHOWNORMAL);
if((int)hRet < 32)
{
hRet = ::ShellExecute(GetSafeHwnd(), _T("open"), _T("winmsd.exe"),
NULL, NULL, SW_SHOWNORMAL);
if((int)hRet < 32)
{
// Trap error codes here...
// You can look for error codes in the CHyperLink control by Chris Maunder or
// use it to launch System Information dialog like I did in the demo.
// Or :
AfxMessageBox(_T("Error executing \"MsInfo32.exe\" !"));
}
}
}
which would habeen enough...
Regards,
Eric
|
|
|
|
 |
|
 |
You seems to be right about it , good job
|
|
|
|
 |
|
 |
I can't believe someone actually posted some garbage like this. This isn't a challenge, not even in the slightest. Space on CodeProject should be for important projects and issues, not CRAP.
Burk A. Zoid
|
|
|
|
 |
|
 |
Keep your opinions to yourself. Try posting something of your own and let others judge what's useful and what's not!
|
|
|
|
 |
|
 |
Well XP works the same way as 2000 if you type in winmsd.exe... you still get msinfo32.exe launched. However, you may or may not know that msinfo32.exe is a utility that may or may not be on the system. It's usually installed by Office or some other major Microsoft product. Pretty sure Developer will install it as well.
Anyway, because of this I simply wrote my own (with some help from Code Project).
|
|
|
|
 |
|
 |
Well I got a problem, and found this place from searches on the Internet concerning my problem. Now I am not as computer savvy as you guys, so I hope you all can answer my question? (I'm in bad shape here! desperate I tell'ya.............
Anyhow here is a rundown of my problem.
I have WinXP, which I just installed last week. Last week I know System Information
(WIM) worked, but today when I went to it I get the following error(s) from System
Information:
"Can't Collect Information Cannot access Windows Management Instrumentation
software. Windows files may be moved or missing."
Anyhow this is on the first screen when I open System Information, and I get
this in place of my system summary on the right side of the screen. Same
thing happens when I try to access any of the groups on the left side of the
box. When I try to close the box I then get a Internet Explorer Script error
saying: "An error has occured on this page. Line 60. Char. 3 Error
Object required Code 0 URL hcp://system/sysinfo/msinfo.htm
I have tried to reassociate SYSINFO.OCX, I have checked the msinfo32.exe file.
And I have tried to look up and read as much as I can about it on the net, but I've
gotten no where! Does anyone have any idea what it is wrong here? And any ideas
to easily fix this problem?
Thanks so much,
Mike Lamb
|
|
|
|
 |