PDA

View Full Version : .net 4.5.1



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

tjohnson1
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

p.wozniak
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.

ricko2001
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"?>
<SetupPrereq>
<conditions>
<!-- 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>
</conditions>
<operatingsystemconditions>
<!-- 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 -->
</operatingsystemconditions>
<files>
<file LocalFile="&lt;ISProjectFolder&gt;\SetupPrerequisites\Microsoft .net\4.5.1\NDP451-KB2858728-x86-x64-AllOS-ENU.exe"
URL="http://download.microsoft.com/download/1/6/7/167F0D79-9317-48AE-AEDB-17120579F8E2/NDP451-KB2858728-x86-x64-AllOS-ENU.exe"
CheckSum="607d3c9b399e3d303a1b14eb4326bd1e"
FileSize="0,70087104"></file>
</files>
<execute file="NDP451-KB2858728-x86-x64-AllOS-ENU.exe"
cmdline="/q /norestart"
cmdlinesilent="/q /norestart"
returncodetoreboot="1641,3010"></execute>
<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>
</SetupPrereq>

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

stevehoek
04-15-2014, 12:10 PM
Hi,

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?

Cheers,
-Steve

adboll
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.

<conditions>

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

<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>
</operatingsystemconditions>