ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

include .net 4.0 update

Hi,

We must include the .Net 4.0 update as prequiste

http://www.microsoft.com/en-us/download ... px?id=3556

How can this be best done? How can be know if x86 or x64 is needed to install?
Do you have sample or more info please?

best regards
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: include .net 4.0 update

Hello,

Please keep in mind that in order to install these updates, .Net Framework 4.0 and Windows Installer 3.1 or a later version should be installed on computer target. Also, these updates can be installed only on the following operating systems: Windows XP SP3, Windows Server 2003 SP2, Windows Vista SP1 or later, Windows 7, Windows 7 SP1, Windows Server 2008, Windows Server 2008 R2 SP1.

So, in order to achieve what you want you can proceed like this:
- Go to "Prerequisites" page and add ours "Windows Installer 3.1" and ".Net Framework 4.0" predefined prerequisites.
- Add .NET Framework 4 update package for 64-bit OSs ("NDP40-KB2468871-v2-x64.exe") as prerequisite.
- From "Install Condition" tab -> "Supported Windows Versions" group select only the 64-bit version of the following operating systems: Windows XP SP3, Windows Server 2003 SP2, Windows Vista SP1 or later, Windows 7, Windows 7 SP1, Windows Server 2008, Windows Server 2008 R2 SP1
- From "Install Condition" tab -> "Install Conditions" group select "Install prerequisite based on conditions" option and add the following condition:
  • Criteria: Registry key exists
    Registry Key: HKLM\Software\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871
- Add .NET Framework 4 update package for 32-bit OSs ("NDP40-KB2468871-v2-x86.exe") package as prerequisite.
- From "Install Condition" tab -> "Supported Windows Versions" group select only the 32-bit version of the following operating systems: Windows XP SP3, Windows Server 2003 SP2, Windows Vista SP1 or later, Windows 7, Windows 7 SP1, Windows Server 2008, Windows Server 2008 R2 SP1
- From "Install Condition" tab -> "Install Conditions" group select "Install prerequisite based on conditions" option and add the following condition:
  • Criteria: Registry key exists
    Registry Key: HKLM\Software\Microsoft\Updates\Microsoft .NET Framework 4 Extended\KB2468871
- Build and run your project.

If you have any more question let me know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

Re: include .net 4.0 update

Hi,

Thx for your tipp. I try it with the next release.

I meantime we know that there are more patches needed to get a fixed .Net 4.0 Framework.

http://support.microsoft.com/kb/2468871
http://support.microsoft.com/kb/2533523
http://support.microsoft.com/kb/2600217

As far as I know, or are there maybe more patches to get a fixed .Net 4.0?
Do I have to add the other 2 patches the same way?

best regards
ifoko
Posts: 35
Joined: Tue Apr 12, 2011 5:10 pm
Contact: Website

Re: include .net 4.0 update

Hi,

I tried it, but unfortunatly the setup is not 73MB instead of 25MB before.

Any ideas?

best regards
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: include .net 4.0 update

Hello,
Do I have to add the other 2 patches the same way?
Yes, you should search for its requirements and then you can add them in the same way.
I tried it, but unfortunatly the setup is not 73MB instead of 25MB before.
Any ideas?
In order to have a smaller package size, you can add the prerequisites as downloadable prerequisite.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”