Cant Install Message Queuing

I get an error everytime i install message queing “MSMQ cannot be started error 0x42c dependency service or group failed to start”

I fixed it by doing this:
start cmd prompt
net stop msdtc
msdtc -uninstall
msdtc – install
net start msdtc

Then I reinstalled MSMQ and it worked.