The best way to do this is to query the Win23_ServerFeature namespace through WMI in a DTF custom action.
Every Windows feature has its own ID that can be searched for. The only restriction I have found with this method is when UAC is enabled. The install must be running with elevated privileges or the logged on use may not have authority to access the WMI namespace. Mat Skildum -----Original Message----- From: John Thornborrow [mailto:j...@pinesoft.co.uk] Sent: Tuesday, April 19, 2011 7:17 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Ensure a Windows Feature is enabled? Hi Guys, One of our products has a dependency on a Windows Feature (specifically the .NET -> WCF -> Non-HTTP Activation feature, amongst a few others). Is there a manageable way to ensure that the machine has these features installed/enabled within WiX? Thanks for any info! Regards, J. ________________________________ This email is from Pinesoft Limited. Its contents are confidential to the intended recipient(s) at the email address(es) to which it has been addressed. It may not be disclosed to or used by anyone other than the addressee(s), nor may it be copied in anyway. If received in error, please contact the sender, then delete it from your system. Although this email and attachments are believed to be free of virus, or any other defect which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Pinesoft for any loss or damage arising in any way from receipt or use thereof. Pinesoft Limited are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA ? Consider your responsibility to the environment - think before you print! ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users