Detect and download the .NET framework.: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Added category links.) |
m (Adding new author and category links.) |
||
Line 1: | Line 1: | ||
{ | {{PageAuthor|pixolut}} | ||
== Description == | == Description == | ||
I would HIGHLY recommend using this script instead. It is more complex yet much more robust. | I would HIGHLY recommend using this script instead. It is more complex yet much more robust. | ||
Line 33: | Line 31: | ||
</highlight-nsis> | </highlight-nsis> | ||
[[ | [[Category:Other Products Version Detection Functions]] |
Revision as of 12:06, 24 June 2005
Author: pixolut (talk, contrib) |
Description
I would HIGHLY recommend using this script instead. It is more complex yet much more robust. Installing the Microsoft .NET Framework
The Function
; Function: GetDotNet ; Author: Joe Cincotta ( joe@pixolut.com ) ; Date: 24/6/2004 ; ; Detect the .NET Framework installation. Download if not present. ; NOTES: ; Requires a default web browser to be installed. ; This function will quit if the framework has not been found. ; you could replace this with a 'click when done' dialog or something ; similar which waits for the installation process to complete. ; - Note that my quick and dirty exe exists approach could be updated ; to use the registry approaches in the other .NET detect examples... ; ; Usage: ; Call GetDotNet ; Function GetDotNet IfFileExists "$WINDIR\Microsoft.NET\Framework\v1.1.4322\installUtil.exe" NextStep MessageBox MB_OK|MB_ICONEXCLAMATION "You must have the Microsoft .NET Framework 1.1 Installed to use this application. $\n$\n Click 'Open' in the following file dialog to download and run the Microsoft .NET Framework Installer..." ExecShell Open "http://download.microsoft.com/download/a/a/c/aac39226-8825-44ce-90e3-bf8203e74006/dotnetfx.exe" SW_SHOWNORMAL Quit NextStep: FunctionEnd