There is more than one way to check for .NET without a custom action.
Here's some of what I use to check for .NET 1.1 and 2.0, figure out the
path to 2.0 and warn the user if either is not found.

<Property Id="DOTNET11CHECK">
                        <RegistrySearch Id="DotNet11Search" Root="HKLM"
Key="SOFTWARE\Microsoft\.NETFramework\policy\v1.1" Name="4322"
Type="raw" />
                </Property>
          
                <Condition Message="[ProductRegName] requires Microsoft
.NET Framework 1.1 on this computer. Install Microsoft .NET Framework
1.1 and then run the installation program again.">
                        <![CDATA[DOTNET11CHECK]]>
                </Condition>

                <Property Id="DOTNET20CHECK">
                        <RegistrySearch Id="DotNet20Search" Root="HKLM"
Key="SOFTWARE\Microsoft\.NETFramework\policy\v2.0" Name="50727"
Type="raw" />
                </Property>

            <Property Id="DOTNET20PATH">
              <RegistrySearch Id="DotNetSearch" Root="HKLM"
Key="Software\Microsoft\.NETFramework" Name="InstallRoot"
Type="directory" />
            </Property>
          
                <Condition Message="[ProductRegName] requires Microsoft
.NET Framework 2.0 on this computer. Install Microsoft .NET Framework
2.0 and then run the installation program again.">
                        <![CDATA[DOTNET20CHECK]]>
                </Condition>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Akshat
Sharma
Sent: Friday, June 20, 2008 7:24 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Search for Installed Windows Component

Hi,

Is there a way to search for installed windows components ? Suppose I
have to search whether .Net is installed it or not. Can I do so without
the use of custom actions?

Regards,
Akshat
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to