|
|
(6 intermediate revisions by 6 users not shown) |
Line 1: |
Line 1: |
| {|align=right | | {{PageAuthor|pixolut}} |
| |<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. |
| [[Installing the Microsoft .NET Framework]] | | [[Installing the Microsoft .NET Framework]] |
| == The Function ==
| |
| <highlight-nsis>
; 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
| |
| </highlight-nsis>
| |
|
| |
| [[{{ns:14}}:Other Products Version Detection Functions]]
| |