Greetings, I have been trying to get my WiX installer to detect whether IIS is installed on a target system or not (installer is expected to be used on systems ranging from Windows XP to Windows 7). My problem is that the detection condition does not seem to be working as my installer hangs on the opening splashscreen dialog while calculating available space and then eventually times out with an error saying the Network location #0 could not be reached. It seems that a registry search property I have defined is being executed before the IIS condition check is performed, but I'm not sure. Below are the two WiX fragment files with the relevant code. Does anyone have a suggestion on how I can get my condition check to occur first so that the installation can be disabled before the cost calculations are performed?
Thanks, Nathan Banek This file is the one with my restrictions and condition checks: <!-- Restrictions.wxs --> <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi <http://schemas.microsoft.com/wix/2006/wi> "> <Property Id="IIS_MAJOR_VERSION"> <RegistrySearch Id="CheckIISVersion" Root="HKLM" Key="SOFTWARE\Microsoft\InetStp" Name="MajorVersion" Type="raw" /> </Property> <Condition Message="IIS must be installed"> Installed OR IIS_MAJOR_VERSION </Condition> <!-- Metabase compatibility is required to allow us to configure the web site properly --> <Property Id="IIS_METABASE_COMPAT"> <RegistrySearch Id="CheckIISMetabase" Root="HKLM" Key="SOFTWARE\Microsoft\InetStp\Components" Name="ADSICompatibility" Type="raw" /> </Property> <Condition Message="IIS 6 Metabase Compatibility feature must be installed"> Installed OR ((VersionNT < 600) OR IIS_METABASE_COMPAT) </Condition> </Fragment> </Wix> In a different wxs file in the project I am attempting to extract the path to IIS from the registry like so: <!-- WebProduct.wxs --> <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi <http://schemas.microsoft.com/wix/2006/wi> " xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension <http://schemas.microsoft.com/wix/IIsExtension> "> <Fragment> <Property Id="IISROOT" Value="#0"> <RegistrySearch Id="IISROOT" Type="raw" Root="HKLM" Key="Software\Microsoft\InetStp" Name="PathWWWRoot" /> </Property> <DirectoryRef Id="ProgramFilesFolder"> <Directory Id="IISROOT" Name="."> </Directory> </DirectoryRef> </Fragment> </Wix> ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users