Old 29th October 2012, 11:12   #1
shazia.parveen
Senior Member
 
Join Date: Jul 2009
Posts: 103
want to add .Net 4.0 run-time

Hi i am Using NSIS for making setup, i want to add .Net 4.0 run-time , i want to write a code for this ,how to do this , waiting for the reply.
shazia.parveen is offline   Reply With Quote
Old 29th October 2012, 12:24   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I googled for '.net 4.0 silent install' and found this in less than 60 seconds: http://msdn.microsoft.com/library/ee...edistributable
MSG is offline   Reply With Quote
Old 30th October 2012, 04:57   #3
shazia.parveen
Senior Member
 
Join Date: Jul 2009
Posts: 103
Thank for the reply..
i need a method for automatically downloading and installing the .NET 4.0 Framework from an NSIS installer, if the machine doesn't already have it?
shazia.parveen is offline   Reply With Quote
Old 30th October 2012, 05:56   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
The official download page http://www.microsoft.com/en-us/downl....aspx?id=17718 requires the user to click a button. But even if you could find a direct link, you shouldn't count on the official download link staying the same always, so you'll probably have to upload the full .net 4.0 redistributable to your own webserver and use the inetc or other download plugins to download it from there.
MSG is offline   Reply With Quote
Old 30th October 2012, 10:00   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Static link: http://download.microsoft.com/downlo...ll_x86_x64.exe

You can detect wether .NET 4 is installed via the registry:
code:
SetRegView 64
ReadRegDWORD $R0 HKLM `Software\Microsoft\NET Framework Setup\NDP\v4\Full` Install
SetRegView lastused
${If} $R0 != 1
...

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump