Hi, I've recently done something similar. I look at the registry to see if MSMQ is installed and store the result in a property:
<Property Id='MSMQAVAILABLE'> <RegistrySearch Id="MSMQIsInstalled" Root="HKLM" Key="System\CurrentControlSet\Services\MSMQ" Name="ImagePath" Type="raw" /> </Property> Note, this is for windows7, other version may be different. Then if it isn't available I use custom actions to install it using DISM, this is only available on newer versions of windows. <Property Id="msmqcontainer" Value='"dism.exe" /online /Enable-Feature /FeatureName:MSMQ-Container /norestart'/> <CustomAction Id="msmqcontainer" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return='check' /> <Custom Action="msmqcontainer" Before="InstallFinalize" >NOT MSMQAVAILABLE</Custom> Unfortunately, MSMQ requires a reboot after installation before you can create the queues. I then have a separate feature for the queues dependent on MSMQAVAILABLE. <Feature Id='MSMQqueues' Level='1'> <ComponentRef Id='msmqueues'/> <Condition Level='0'>NOT MSMQAVAILABLE</Condition> </Feature> If MSMQ was installed as part of the process I then ask for a reboot. I'd like to then install the queues on the next reboot, but haven't figured that part out yet. My software will set the queues up if they're missing, but I can end up in a chicken and egg situation so I'd prefer to do it with the installer. Matt -----Original Message----- From: mann1402 [mailto:manoj.ban...@live.in] Sent: 08 March 2011 16:55 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Wix and MSMQ: MSMQ Detection Hi, I have to create a message queue if MSMQ is installed. If MSMQ is not installed then move forward without doing anything. Is there a way, we can found that whether MSMQ is installed in MSMQExtension dll. I know, We can use Registry for the same but installer will fail if MSMQ is not installed. Please help. Thanks, Mark -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-and-MS MQ-MSMQ-Detection-tp6130317p6130317.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users The information in this email (and any attachments) is confidential and is intended solely for the use of the individual or entity to whom it is addressed. If you received this email in error please tell us by reply email (or telephone the sender) and delete all electronic copies on your system or other copies known to you. Trainline Investments Holdings Limited (Registered No.5776685), Trainline.com Limited (Registered No. 3846791) and Trainline Scotland Limited (Registered No. 6881309) are all registered in England and Wales with registered office at The Matrix, 9 Aldgate High Street, London, EC3N 1AH. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users