Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Your application can configure all necessary MSMQ and NETREGD registry parameters by simply putting the necessary data in the registry. This can save you from including MSMQADM in the configuration. Look in the MSMQ Administration Guide for a description of all registry settings. Though some registry settings are optional, the following settings have to be set for MSMQ to run:
To install MSMQ as a device driver
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSMQD] "Dll"="MSMQD.DLL" "Entry"="MSMQDInitialize" "Keep"=DWORD:1 "Order"=DWORD:9
To install NETREG as a device driver
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\NETREGD] "Dll"="NETREGD.DLL" "Entry"="NETREGDInitialize" "Keep"=DWORD:1 "Order"=DWORD:8
To provide minimal MSMQ configuration
[HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\SimpleClient] "BaseDir"="\TEMP\MSMQ" ; or wherever you want to keep MSMQ store "CEStartAtBoot"=DWORD:1 ; start MSMQ at boot time "DefaultQuota"=DWORD:300 ; limit on outgoing queues in kilobytes "PingPort"=DWORD:0x00000DC7 ; 3527 - don't change this! "Port"=DWORD:0x00000709 ; 1801 - don't change this! "QueueManagerGUID"=HEX:... ; 16 bytes of QM GUID. This number must be unique, use standard GUID generation algorithm to obtain it. "CETrackNetwork"="Yes" ; not really required but strongly recommended
To provide NETREG configuration
[HKEY_LOCAL_MACHINE\Software\Microsoft\NETREG] "EmulateNB"=DWORD:1 "TrackNetwork"=DWORD:1 "Cycle"=DWORD:1000
Note Without MSMQADM.EXE you cannot start and stop MSMQ service dynamically. If, however, the CEStartAtBoot value of the MSMQ registry key is set to No, MSMQ will not start at the next reboot time.
For more information about registry settings, see the MSMQ Administration Guide and a white paper called "Network fine-tuning of MSMQ" in the MSDN Library.