문제

I have a server with a request queue and a client with a responsive queue. I want to install MSMQ pragmatically on client as well as on server machine i.e. not by manually going to Server Manager/Add window's features.

도움이 되었습니까?

해결책

You can start

dism.exe /Online /Enable-Feature /FeatureName:MSMQ-Server /all  

as a process using:

System.Diagnostics.Process.Start()

If you need any aditionally Msmq features, you can find list this by doing:

dism.exe /online /get-features | Find "MSMQ"

which gives you something like:

Feature Name : MSMQ-Container
Feature Name : MSMQ-Server
Feature Name : MSMQ-Triggers
Feature Name : MSMQ-ADIntegration
Feature Name : MSMQ-HTTP
Feature Name : MSMQ-Multicast
Feature Name : MSMQ-DCOMProxy
Feature Name : WCF-MSMQ-Activation45
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top