PDA

View Full Version : Setting .Net2.0 Framework as mandatory prerequisite.



mkkhan
12-30-2008, 05:57 AM
Am using Basic MSI project of the Installshield 2008 professional.

I want to set .Net2.0 Framework as mandatory prerequisite for the product installation.

In the release wizard i have set to include .Net2.0 Framework, and the settings are as shown in the image below.

But when i try to install in test machine which does not have .Net2.0 Framework.. i get a dialog asking to install .net2.0 Framework.

Issue # 1

The dialog shows it as optional, but i need it to be as mandatory .?? how to change that as mandatory

Issue # 2
When i click on the "No Button " option, the installer continues to install the product, how do i restrict this.. i want the end user to install the framework and proceed for the installation of the product.
If the user selects not to install the .netFramework, then the installation process should abort... How to do this..?

Please Help me ...!

Any help in this regard will be highly appreciated.

manumanimala
12-30-2008, 07:24 AM
You can give it by the Setup Prerequisite option of Install Shield.

From Tools- Setup Prerequisite, add a new one,

The condition to be checked is, search registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
value -> Install =1

File to include -> path to dotnetfx20.exe
Application to run -> dotnetfx20.exe

save this.
And from redistributable, add this to your project.

mkkhan
12-30-2008, 08:13 AM
I tried this way, but when i save it as .prq file it does not list in the "Redistributables" List.

It was saved to "SetupPrerequisites" folder only.
I could see it as a file. but not in the list of "Redistributables"

Is there any specific way to save.. ?

BernardC
12-30-2008, 11:03 AM
You should set your "Display .NET Option Dialog" to "No" (instead of "Yes").

You will not get FW .NET 2.0 in the prerequisite setup list but information will be displayed when fw installation will proceed (at the of button of installation window).

Bernard.

mkkhan
12-31-2008, 01:12 AM
You can give it by the Setup Prerequisite option of Install Shield.

From Tools- Setup Prerequisite, add a new one,

The condition to be checked is, search registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
value -> Install =1

File to include -> path to dotnetfx20.exe
Application to run -> dotnetfx20.exe

save this.
And from redistributable, add this to your project.


I got this working.. but there is another problem in it..
Even after complete successfull installation of .net2.0Framework, it says.. installing... and moreover, everytime it tries to download from the web url given.

mkkhan
12-31-2008, 01:14 AM
You should set your "Display .NET Option Dialog" to "No" (instead of "Yes").

You will not get FW .NET 2.0 in the prerequisite setup list but information will be displayed when fw installation will proceed (at the of button of installation window).

Bernard.

This seems fine, the installer goes with the installation of .Net2.0Framework, but is there any way.. that i need to intimate the enduser about the .net2.0Framework installation.

Let me try this with different scenarios.

manumanimala
07-15-2009, 07:06 AM
Hi,
Is there any way to display the Prerequisite dialog after 'InstallWelcome dialog' ? can we reoder it?