If you need to install a different version of a particular file based on the version of IE installed on a machine you could check the registry key HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > InternetExplorer > Version Vector and then install files using a condition like so:
<Wix> <Product> ... <!-- Go find the IE version from the registry. --> <Property Id="IE_VERSION"> <RegistrySearch Id="IE_VERSION" Type="raw" Root="HKLM" Key="SOFTWARE\Microsoft\InternetExplorer" Name="Version Vector" /> </Property> ... <Fragment> <ComponentGroup> <Component Id="WebConfigIE7"> <File Id="WebConfig" Name="Web.config" Source="Web.config.v7" Vital="yes" KeyPath="yes"/> <Condition><![CDATA[IE_VERSION < "#8"]]></Condition> </Component> <!-- Install Web.config for IIS 8 or greater --> <Component Id="WebConfigIE8"> <File Id="WebConfigIIS8" Name="Web.config" Source="Web.config.v8" Vital="yes" KeyPath="yes"/> <Condition><![CDATA[IE_VERSION >= "#8"]]></Condition> </Component> <Fragment> <Wix> In this case I have two Web.config files stored in my project with different names (.v7 & .v8) and based on what version of IE is found I install the correct version of Web.config. Note that the 'Name' property of the File installs the file without the .v7 or .v8 extension. Brian If you can't explain it simply, you don't understand it well enough. - Albert Einstein On Tue, Oct 28, 2014 at 7:28 AM, soldag <soeren_ol...@freenet.de> wrote: > Hmm, too bad that their is no other possibility, because I never came in > touch with custom actions. > > I want to specify, which version of the Interner Explorer should be used > inside my application. Therefore I need to add a registry key with only the > executable name (see here > < > http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version > > > ). > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Get-only-the-name-of-a-file-by-its-id-tp7597508p7597528.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users