Click here to Skip to main content
Click here to Skip to main content

.NET Framework 1.1 Installer for Innosetup

By , 22 May 2004
 

Introduction

Here is an Innosetup script I wrote that installs the dotnet framework. It's pretty intuitive I think. I couldn't find any extensive ones when I was searching and working on it, so I thought I'd post it.

It detects if the following are installed, and then downloads from Microsoft (if they aren't in a root \dependencies folder already) and installs them for the user without prompting them. IE 6 prompts for a download location (this could be changed to a total quiet install, but there would be a long wait with no status updates).

  • NT4 sp6a - required by dotnet, when on nt4
  • IE 6 - required by dotnet
  • MDAC 2.8 - My app needed it
  • Jet 4.0 sp3 - dao 3.6 isn't included in mdac 2.7...
  • .NET 1.1

The setup does skip the application directory dialog if an exclusive reboot is needed (I disabled the app dir wizard page FYI, you'll want to re-enable that).

Those who are looking for alternative ways to install .net services might want to consider using things like InstallUtil and net start and net stop. The base functions, as well as some misc functions that I use personally, are also included in the script.

Thanks IS, ISX and ISXDL authors!

Here's a link to my original post: http://news.jrsoftware.org/news/innosetup.isx/msg06108.html

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Ted Ehrich
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralGreat work - have u tried .NET 2.0 with it? [modified]memberLightingToGo2 Mar '06 - 7:27 
GeneralRe: Great work - have u tried .NET 2.0 with it?memberTed Ehrich26 Apr '06 - 14:26 
AnswerDetecting .NET 2.0memberrazva28 Oct '06 - 11:01 
Just check the registry for v2.0 :
[Code]
function InitializeSetup(): Boolean;
var
    ErrorCode: Integer;
    NetFrameWorkInstalled : Boolean;
    Result1 : Boolean;
begin
  NetFrameWorkInstalled := RegKeyExists(HKLM,'SOFTWARE\Microsoft\.NETFramework\policy\v2.0');
  if NetFrameWorkInstalled =true then
  begin
    Result := true;
  end;
 
  if NetFrameWorkInstalled =false then
  begin
    Result1 := MsgBox('This setup requires the .NET Framework v2.0. Please download and install the .NET Framework v2.0 and run this setup again. Do you want to download the framwork now?',
      mbConfirmation, MB_YESNO) = idYes;
    if Result1 =false then
    begin
      Result:=false;
    end
    else
    begin
     Result:=false;
      ShellExec('open', 'http://download.microsoft.com/download/a/a/c/aac39226-8825-44ce-90e3-bf8203e74006/dotnetfx.exe','','',SW_SHOWNORMAL,ewNoWait,ErrorCode);
    end;
  end;
end;
Roll eyes | :rolleyes:
Good luck!

GeneralScript errormembernmg1968 Jul '05 - 1:59 
GeneralRe: Script errormemberTed Ehrich26 Apr '06 - 14:24 
GeneralRe: Script errormembernmg19626 Apr '06 - 22:33 
GeneralRe: Script errormemberTed Ehrich27 Apr '06 - 6:49 
GeneralRe: Script error [modified]memberGlaucioSilva14 May '09 - 4:21 
GeneralProblem with ISTools Updatememberstroi28 Dec '04 - 10:49 
GeneralRe: Problem with ISTools Updatememberstockman0127 Apr '05 - 11:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 23 May 2004
Article Copyright 2004 by Ted Ehrich
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid