PDA

View Full Version : .NET Framework 4.6.2



rvanwyk@tab.com
09-13-2016, 02:29 PM
Is there an InstallShield 2016 prerequisite available for the Microsoft .NET 4.6.2 Framework?

JSClark
09-19-2016, 03:11 PM
You can make your own.

Start with a blank text file.
Cut and paste the section below.
Save file with the name: Microsoft .NET Framework 4.6.2 Full.prq
Move this file to C:\Program Files (x86)\InstallShield\2016\SetupPrerequisites
Open InstallShield, go to Redistributables pane.
Microsoft .NET Framework 4.6.2 Full should be visible.
Right-click > Download Selected Item…
The download link is good as of September 2016.

+++++++++
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SetupPrereq>
<conditions>
<condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Release" ReturnValue="394806" Bits="2"/>
</conditions>
<files>
<file LocalFile=".\Microsoft.net\4.6\Full\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" URL="https://download.microsoft.com/download/F/9/4/F942F07D-F26F-4F30-B4E3-EBD54FABA377/NDP462-KB3151800-x86-x64-AllOS-ENU.exe" CheckSum="9A5D647EE710AF2B1AEDE329C40BBE1A" FileSize="0,62008080"/>
</files>
<execute file="NDP462-KB3151800-x86-x64-AllOS-ENU.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"/>
<properties Id="{4661371D-BBEA-49B0-AD92-95A563E2353B}" Description="This prerequisite installs the .NET Framework 4.6.2 full standalone package."/>
<behavior Reboot="32"/>
</SetupPrereq>
+++++++++

rvanwyk@tab.com
09-19-2016, 04:03 PM
Thanks so much JSClark, I did not realize it was so easy! :)

Timo Zimmermann
11-24-2016, 04:58 AM
optimized edition, based on prq for 4.6.1


<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
<conditions>
<condition Type="2" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" FileName="Release" ReturnValue="394802"></condition>
</conditions>
<operatingsystemconditions>
<operatingsystemcondition MajorVersion="6" MinorVersion="1" PlatformId="2" CSDVersion="" ServicePackMajorMin="1"></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="2" PlatformId="2" CSDVersion=""></operatingsystemcondition>
<operatingsystemcondition MajorVersion="6" MinorVersion="3" PlatformId="2" CSDVersion=""></operatingsystemcondition>
<operatingsystemcondition MajorVersion="10" MinorVersion="0" PlatformId="2" CSDVersion=""></operatingsystemcondition>
</operatingsystemconditions>
<files>
<file LocalFile="&lt;ISProductFolder&gt;\SetupPrerequisites\Microsoft.net\4.6\Full\NDP462-KB3151800-x86-x64-AllOS-ENU.exe" URL="https://download.microsoft.com/download/F/9/4/F942F07D-F26F-4F30-B4E3-EBD54FABA377/NDP462-KB3151800-x86-x64-AllOS-ENU.exe" CheckSum="9A5D647EE710AF2B1AEDE329C40BBE1A" FileSize="0,62008080"></file>
</files>
<execute file="NDP462-KB3151800-x86-x64-AllOS-ENU.exe" cmdline="/q /norestart" cmdlinesilent="/q /norestart" returncodetoreboot="1641,3010"></execute>
<properties Id="{4661371D-BBEA-49B0-AD92-95A563E2353B}" Description="This prerequisite installs the .NET Framework 4.6.2 full standalone package."></properties>
<behavior Reboot="2"></behavior>
</SetupPrereq>

MattQVI
04-10-2017, 11:37 AM
According to https://msdn.microsoft.com/en-us/library/ee942965(v=vs.110).aspx, I should be using 394806 for all OS versions other than Windows 10 Anniversary Edition and 394802 for Windows 10 Anniversary Edition. Is there a way to specify BOTH in the Prerequisite Editor? Or am I going to have to make two different prerequisites?

Timo Zimmermann
04-12-2017, 03:28 AM
According to https://msdn.microsoft.com/en-us/library/ee942965(v=vs.110).aspx, I should be using 394806 for all OS versions other than Windows 10 Anniversary Edition and 394802 for Windows 10 Anniversary Edition. Is there a way to specify BOTH in the Prerequisite Editor? Or am I going to have to make two different prerequisites?

my "optimized edition" works with all os versions including Win10. It would be enough just to check if the value is lower than 394802

chad.petersen
04-12-2017, 10:36 AM
You could also use the Pre-requisite editor and just add in a second registry value to look for - sort of like the OS conditions where you can have a bunch of different entries for OS and it just steps thru them until (if) it finds a match.

Chad