Turns out that I was able to open the original compmgmt.msc in author mode "mmc.exe /a compmgmt.msc" and add the snap-in and save. The pain in the ass was, I had to do this on an image of my system which had the program with the new snap-in (Rational) installed and registered. Then the mmc.exe sees cccredmgr.msc as a valid snap-in that can be added. I originally tried to add the snap-in on a clean base image that I just copied the new snap-in to. Didn't work.
Yet another pain in the ass in windows that is not scriptable, requires a mouse, requires the registry, no one had ever done before, I had to figure out myself, not documented, took way longer to do than it should have. Now the Rational users can live without fear of a missing icon that they probably didn't even know was there. By the way, there are at least two other ways to do the same thing, but I must make my installer as similar to the original as possible. OK, somebody burn out my eyes with a hot poker.
-----Original Message----- From: sirsky [mailto:[email protected]] Sent: Sunday, May 22, 2005 4:31 PM To: Kelsay, Brian - Kansas City, MO Subject: Re: Windows question- respond off list
What you want to do here, is to create a *new* MMC, and add the snap-ins as needed to replicate the 'compmgmt.msc' console, and add your .msc to it. I believe the default ones that come with Windows (such as compmgmt.msc) are read-only, you can't add new snap-ins to them. But you can build new ones, that are identical, and make additions to that.
Hope this helps...
-Lucas
On 5/16/05, Kelsay, Brian - Kansas City, MO [email protected] wrote:
God I hate doing this, but it's for my job. I need to add a
.msc file
to the standard Windows Management console, the mmc. This
.msc file is
a part of a program I'm working with and it adds some monitoring functionality to the standard mmc console. I know how to make a new, custom console and save it, etc. What I need is the command, if one exists, to add the .msc into the "compmgmt.msc" under the
"Services and
Applications" subheading, "services.msc". If I have a
single command or
series of commands, I can add this to my install script. The docs on MMC.exe are a little light and non-existent AFAICT in what I specifically want to do.
This is giving me a headache.