Project “Project” and “Bootstrapper” for checking and setting preconditions

Here is my situation:

  • I am creating a regular WiX installation project.
  • Then I try to check some prerequisites, for example, if the .NET platform is installed.
  • It seems that I cannot do this from the WiX Setup project. Therefore, I am creating the WiX Bootstrapper Project, and I can verify and establish these premises.
  • I am trying to use WiX Bootstrapper in a WiX installation project, but I cannot. In the examples I see, the WiX Bootstrapper project uses an installation project with a tag MsiPackage.

It seems strange to me to start the installation project from the Bootstrapper project. Instead, I prefer to check and install prerequisites from the installation project (maybe call the bootstrapper project from the installation project).

So here are my questions:

  • Can I check and install some of the prerequisites of the .NET framework in a Wix Setup project? If so, how?
  • Can I launch the application from BootStrapper WiX and call the WiX installation project from it? Is this a general agreement?
+4
source share
1 answer
  • You can check dotnet on wix setup. But you cannot set the preliminary details from the setting. Thus, you can send a message asking you to install dotnet before installation.

dotnet 4.0 wix.

<Property Id="DOTNET40">
    <RegistrySearch Id="NetFramework40"
                    Root="HKLM"
                    Key="Software\Microsoft\NET Framework Setup\NDP\v4"
             Name="Install"
                    Type="raw" />
</Property>


<Condition Message="Please install the .NET Framework 4.0 and run this installer again.">
    <![CDATA[Installed OR DOTNET40]]>
</Condition>
  1. - . , .
+5

All Articles