我正在寻找新产品中的客户端/服务器通信的消息队列 。 MSMQ的其中一个问题是它在大多数Windows桌面上并没有被默认安装,而且它似乎没有作为一个可再发行组件包含在我们的MSI中。
鉴于pipe理员将有权访问Microsoft SMS或ConfigMgr或类似的,我如何说服他们很容易安装? 那就是:如何自动安装MSMQ组件?
这应该让你开始:
您将需要执行以下操作以获取MSQM的无人值守安装:
:Variables :: Path Variables SET IsoPath=\\server1\ISO Library SET ResourcePath=\\server2\Resource SET ScriptPath=%~dp0 SET ScriptPath=%ScriptPath:~0,-1% SET MountPath=m: :: Application Variables SET PismoMount=pfm mount -m %MountPath% SET PismoUnMount=pfm unmount echo -Installing Pismo File Mount "%ResourcePath%\pfmap-051.exe" /q echo Configuring Windows install location source path reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ /v "SourcePath" /t REG_SZ /d %MountPath%\ /f reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ /v "ServicePackSourcePath" /t REG_SZ /d %MountPath%\ /f sysocmgr /i:%WINDIR%\inf\sysoc.inf /u:"%ScriptPath%\MSMQ.txt" /x /q
[Version] Signature = "$Windows NT$" [Global] FreshMode = Custom MaintenanceMode = RemoveAll UpgradeMode = UpgradeOnly [Components] msmq = on msmq_Common = on msmq_Core = on msmq_TriggersService = on msmq_HTTPSupport = off msmq_LocalStorage = on msmq_ADIntegrated = off [Msmq] ControllerServer= SupportingServer= ServerAuthenticationOnly= Site=
如果您需要了解脚本各个部分的更多信息,请告诉我,我会尽力写出解释所有部分的内容。