I thought I'd sent a message on this one but must have deleted a draft. There are two sorts of MMC snap-in:
MMC 3.0 only: .NET 2.0 classes which inherit Microsoft.ManagementConsole.SnapIn All versions: COM objects which implement IComponent and IcomponentData (not to be confused, in .NET, with System.ComponentModel.IComponent). The former sort can be registered with registry keys under HKLM\Software\Microsoft\MMC\SnapIns. The documentation tells you to use a .NET Installer class but that's a bad plan - managed custom actions are officially not supported (I wish the Framework team would just mark the damned thing Deprecated and work out a way to achieve their install tasks WITHOUT doing something unsupported by Windows Installer). WixMMCExtension in v2 handles only MMC 3.0 .NET snap-ins. It is a pure extension in that it only generates Registry rows, rather than requiring any custom actions. It could be ported to WiX v3 fairly easily, I think. The latter sort are simply COM objects and should be registered in the same way as any other .NET objects registered for COM interop, if you have written it using .NET. Heat is able to handle this (if you're running as an administrator, anyway - if not, it just generates the File element in 3.0.3304.0). However Heat will only generate the COM registration - it won't generate the snap-in registration. You'll need to add your own <Registry> elements to do this. The registry entries you need to create can be found at http://msdn2.microsoft.com/en-us/library/aa815156.aspx. Adding the snap-in to a console (.msc) file is then straightforwardly done through the MMC user interface. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Levon Levonian Sent: 30 October 2007 16:15 To: Chad Petersen; Rob Mensching Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] MMC Snapin Hi. Thanks for the reply. But isn't it true that the DLL itself should be registered, since the .MSC acts as a configuration/shortcut to the actual snap-in, which resides in a DLL. I deployed the MSC, but I am just getting "Snap-in failed to initialize" and "Snap-in creation failed" messages when I run it. Anyway, I tried to register the DLL manually with RegAsm mySnapIn.dll /codebase, but I am getting an "Action canceled" page in the area where snap-in should be displayed. Any comments are appreciated. -----Original Message----- From: Chad Petersen [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 9:36 To: Levon Levonian; Rob Mensching Cc: wix-users@lists.sourceforge.net Subject: RE: [WiX-users] MMC Snapin We use an MMC snap-in in one of our applications. I may be simplifying this too much, but entry point to a Snap-In is the .MSC file. We deposit the .MSC in the Deploy directory of choice and create a shortcut to the .MSC. <Component Id="DeployMSCComp" Guid="1ED23462-B5B7-42af-B86A-BF4CB1E86BB6"> <File Id="DeployMSC" Name="INTERL~1.MSC" LongName="Interlinq E3 Deployment Manager.msc" src=".\Data\Interlinq E3 Deployment Manager 2.6.msc" Vital="yes" KeyPath="yes" DiskId="1"> <Shortcut Id="DeployMSCShortCut" Directory="MENUINTERLINQ" Name="E3Depl~2" LongName="Interlinq E3 Deployment Manager" Icon="DEPLOYICON" IconIndex="0" Show="normal" WorkingDirectory="DEPLOYDIR" /> </File> </Component> The rest of the supporting DLLs and scripts, etc. that are needed by the Snap-In also go in the same folder and a registry key association is made to the resource dll that references the MSC file. <File Id="E3DeployManagerResources_Dll" Name="E3R~1.dll" LongName="E3DeployManagerResource.dll" src=".\Data\E3DeployManagerResource.dll" Vital="yes" DiskId="1"/> <Registry Id="DeployLocationKey" Root="HKCU" Key="Software\HarlandFS\E3Deploy" Name="MSC" Value="[#DeployMSC]" Type="string"/> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Levon Levonian Sent: Friday, October 26, 2007 4:31 PM To: Rob Mensching Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] MMC Snapin OK, I got the extension name, but: None of the WiX v3 packages contains WixMMCExtension, I only found it in v2, but v3 does not load v2 extensions (Error The extension 'C:\Program Files\Windows Installer XML v3\bin\WixMMCExtension.dll' could not be loaded. candle.exe) Anybody has a working example for Snap-in deployment? Thanks! -----Original Message----- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Thursday, October 25, 2007 19:57 To: Levon Levonian Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] MMC Snapin There is an extension in WiX v3 that handles much of the authoring work for you. Levon Levonian wrote: > > Hi All, > > > > Is there a (easy) way to deploy an MMC Snap-in? > ************************************************************************** READER BEWARE: Unencrypted, unsigned Internet e-mail is inherently insecure. Internet messages may be corrupted, incomplete, misdirected or may incorrectly identify the sender. Therefore, nothing in this message or attachments may be considered legally binding. THIS MESSAGE IS ONLY INTENDED FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY BE PRIVILEGED. If you are not the intended recipient or their authorized agent, you may not forward or copy this information and must delete or destroy all copies of this message and attachments received. If you have received this communication in error, please notify Matrikon Inc. by telephone at (780) 448-1010. ************************************************************************** ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users