View Full Version : .net 4.5.1

11-05-2013, 05:40 PM
Is a prerequisite available?

11-11-2013, 03:54 PM
There is not a prerequisited for 4.5.1. You can however use the Prerequisite Editor and create your own: http://kb.flexerasoftware.com/doc/Helpnet/installshield20helplib/Content/helplibrary/SetupPrereqEditor.htm

01-17-2014, 05:15 AM
Is it possible for someone to share the finished prerequisite for net 4.5.1?
If someone has prepared in the editor, please add it as an attachment. This will facilitate my work and others.

03-12-2014, 08:02 PM
Seems to work for me. I only have to deal with Win 7 and later.
I don't deal with the case of a ver 4 release later than 4.5.1 already installed. I am hoping the ,net installer will handle that.
Any feedback would be appreciated.

<?xml version="1.0" encoding="UTF-8"?>
<!-- Test for redistributable 4.5.1 -->
<condition Type="2" Comparison="2"
Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
FileName="Release" ReturnValue="378758"></condition>
<!-- Test for 4.5.1 on Win 8.1 -->
<condition Type="2" Comparison="2"
Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
FileName="Release" ReturnValue="378675"></condition>
<!-- run on Win 7 -->
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" ProductType="1"></operatingsystemcondition>
<!-- run on Win 8 -->
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" ProductType="1"></operatingsystemcondition>
<!-- do not run on Win 8.1, so do not include v6.3 -->
<file LocalFile="&lt;ISProjectFolder&gt;\SetupPrerequisites\Microsoft .net\4.5.1\NDP451-KB2858728-x86-x64-AllOS-ENU.exe"
<execute file="NDP451-KB2858728-x86-x64-AllOS-ENU.exe"
cmdline="/q /norestart"
cmdlinesilent="/q /norestart"
<properties Id="{32D7E3D1-C9DF-4FA6-6767-4D5117AB2917}"
Description="This prerequisite installs the .NET Framework 4.5.1 package."></properties>
<behavior Failure="2" Reboot="2"></behavior>

04-12-2014, 02:51 AM
Dude, that was perfect!!

04-15-2014, 12:10 PM

Thanks for posting this Ricko2001!

I have a question about the conditions... don't both conditions have to evaluate to TRUE for the pre-req to be considered "installed"? So you're checking for each .NET 4.5.1 version. On a Win7/8.0 machine, it will never have the Win8.1 value, and vice versa. Why not just one condition checking for exactly the 378758 value (Win7/8.0) and use the OS conditions to skip the check on Win8.1?


04-29-2014, 03:35 PM
For the operating system conditions, I went by Microsoft's download page documentation of:

"Microsoft .NET Framework 4.5.1 (Offline Installer) for Windows Vista SP2, Windows 7 SP1, Windows 8, Windows Server 2008 SP2 Windows Server 2008 R2 SP1 and Windows Server 2012"

The reg key using the version number I found on my own, but I guess any of the three will work. You may not want to include the condition for release 378675 because I looked it up and that is the Release Candidate. It will work, but if you only want the latest, only include the release 378758.


<condition Type="32" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Version" ReturnValue="4.5.50938"></condition>

<operatingsystemcondition MajorVersion="6" MinorVersion="0" PlatformId="2" CSDVersion="" ServicePackMajorMin="2"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" ServicePackMajorMin="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion="" ProductType="2|3"></operatingsystemcondition>