bhawkins
Posts: 19
Joined: Thu Apr 05, 2012 3:54 pm

Simple Dialog - Warning about .NET 4.0

Hello,

Creating a demo installation for our product. Since the software requires .NET 4.0 Framework we need to include this as a prerequisite.

I really wish to create a dialog to warn the user that .NET 4.0 Framework will be installed in order to run the Demo software and they need to check the box to proceed.

If they click the box and next .. then we continue .. if not they .. can cancel from the setup.

Is there any tutorials on such a simple task as this?

Thanks in Advanced.

Cheers,
Bruce
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Simple Dialog - Warning about .NET 4.0

Hi Bruce,

This UI behavior is already implemented in the bootstrapper. Have you tried adding .NET Framework as a pre-install prerequisite?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bhawkins
Posts: 19
Joined: Thu Apr 05, 2012 3:54 pm

Re: Simple Dialog - Warning about .NET 4.0

Mihia,

Yes, we already added the ability to install .NET Framework 4.0.

Originally removed the dialog as we were installing by running the msi and not the exe. The form is great if there were some real options for the user. We really just wanted a simple clear dialog that the user would have to check a box like the licensing agreement to continue. This is so they know clearly that this will be installed.

Likely the easiest option would be if .NET Framework 4.0 is already installed, skip this prerequisite page. Is there a way to do that?

Cheers,
Bruce
bhawkins
Posts: 19
Joined: Thu Apr 05, 2012 3:54 pm

Re: Simple Dialog - Warning about .NET 4.0

Hello,

Ok poking around a bit with prerequisite dialog. .NET Framework 4.0 is the only feature required so I have customized the dialog messages to provide the messages that I wish the users to see.

Now could someone help me with "Show only if ... " conditions.

I was looking at some predefined conditions and the wizard ... I managed to add a PrerequisiteDlg_Cond however, I have no idea how to edit it or to define it correctly for the condition I wish.

Could you point me in the direction for how to detect that .NET Framework 4.0 is already installed and not to display this dialog.

Thanks.
Bruce
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Simple Dialog - Warning about .NET 4.0

Hi Bruce,

You can add a couple of searches in the Search page similar to the searches from the Install Conditions tab of the prerequisite (Prerequisite page).

By using the search names in your condition you should be able to hide / show a dialog using "Show only if..." feature.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”