|
|
(5 intermediate revisions by 5 users not shown) |
Line 4: |
Line 4: |
| 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>
| |
|
| |
| [[Category:Other Products Version Detection Functions]]
| |
Latest revision as of 07:27, 5 February 2011