kkim
Posts: 44
Joined: Thu Apr 12, 2007 3:58 pm

.NET2 pre-requisite won't install....

Ok so I have the .NET2 pre-requisite checked off as well as choosing the correct file.(dotnetfx.exe)

As soon as I click on my EXE setup file, it says:

Testfile cannot be installed on systems with .NET framework version
smaller than 2.0"

Now that is correct, I want the setup file to install it!! I even checked off
force installation of this prerequisite and it still doesn't do it.

What am I missing? The dotnetfx.exe file is already included.....

Thanks...
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

I had the same problem at first. You don't need to have it checked in the launch conditions page, that sets up requirements before the installer will launch. Instead, you need the prerequisite only on the software page. Also, be aware that the .NET detection in AI isn't robust enough to detect an uninstall of the environment. If your user has installed 2.0 in the past and since uninstalled it, the installer will be fooled into believing it's still there. I started another thread whining about that, it's not too hard to find and provides a link to some excellent code for determining the .NET version with some pretty good accuracy. Hope that helps!
Thanks,
Jebrew
kkim
Posts: 44
Joined: Thu Apr 12, 2007 3:58 pm

Hi Jebrew!

Thanks for responding. I found a couple other posts about this. I have been hitting my head on the table trying to figure this thing out! You are correct, the LAUNCH CONDITIONS is MISLEADING!!!

I thought the Launch Conditions meant that if ".NET2" wasn't found, it would then go into the Software tab and grab the dotnetfx.exe file that I included!

That is not the case!! If ".NET2" is not found, it just exits and that's it!

I had .NET2 on my PC and I uninstalled it on purpose so that I can test it's accuracy...I guess AI needs to work on some better coding?

I found some posts on criteria's but they were all for customizing the Launch Conditions. The only thing I did was add Minimum Version 2.0 to the Software.

I'm really not sure where to go from here....

Kim
kkim
Posts: 44
Joined: Thu Apr 12, 2007 3:58 pm

Jebrew is this the link you were talking about? I found it from one of your posts...

http://www.advancedinstaller.com/forums ... scoree+dll


My only question is that they are talking about creating Launch Conditions for accurately testing .NET2. So isn't that really the same problem that I have now anyways?

It KNOWS I don't have .NET2 but it exits...how do I get it to KNOW my PC doesn't have .NET2 and then go ahead and install the included package?

There must be something I'm not understanding???

Thanks...
kkim
Posts: 44
Joined: Thu Apr 12, 2007 3:58 pm

nevermind guys, I figured it out.....

Thanks to Jebrews post which led to Brian's post....
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The detection criteria for the predefined Prerequisites will be updated in a future version of Advanced Installer.

The method recommended by Microsoft to detect the presence of the .NET Framework:
http://msdn2.microsoft.com/en-us/librar ... 30_topic14

Hence, in order to check for .NET Framework 2.0 or higher:

1. Create a new Prerequisite in the Prerequisites page, "Software" tab.

2. In the "Install Conditions" tab of the "Edit Prerequisite" dialog, instead of the default "File version" criteria, use 2 "Registry value with specified content" searches, one for .NET 2.0 and the other for .NET 3.0. You will use the following Registry Values:

Code: Select all

HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\Install
and:

Code: Select all

HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0\Setup\InstallSuccess
In both cases, the Value field will be set to "1" and the Comparison to "Exact match".

3. You will also use the option "Install if all of the above searches fail" (that is, the Prerequisite will be installed if neither .NET 2.0, nor .NET 3.0 exist on the system).

Note that, due to a bug (fixed in AI 4.9.2 which is scheduled for release soon), the text of the 2 radio buttons was incorrect and their logic is inversed.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
kkim
Posts: 44
Joined: Thu Apr 12, 2007 3:58 pm

Thanks Ionut,

I wasn't aware of the second option. I will update my package to include this....

Return to “Common Problems”