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
FOLLOW US
Get the latest news in Application Packaging