Detect and download the .NET framework.: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Updated author links.)
Line 1: Line 1:
{|align=right
|<small>Author: [[{{ns:2}}:pixolut|pixolut]] ([[{{ns:3}}:pixolut|talk]], [[{{ns:-1}}:Contributions/pixolut|contrib]])</small>
|}
<br style="clear:both;">
== 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 28: Line 32:
FunctionEnd
FunctionEnd
</highlight-nsis>
</highlight-nsis>
Page author: [[User:pixolut|pixolut]]

Revision as of 23:28, 29 April 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