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

From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library)
 
m (Updated author and download links, and changed format of some pages.)
Line 29: Line 29:
</highlight-nsis>
</highlight-nsis>


 
Page author: [[User:pixolut|pixolut]]
Page author: pixolut

Revision as of 12:42, 23 April 2005

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

Page author: pixolut