Click here to Skip to main content
Licence 
First Posted 22 May 2004
Views 95,363
Downloads 276
Bookmarked 32 times

.NET Framework 1.1 Installer for Innosetup

By | 22 May 2004 | Article
An innosetup install script that detects which dependencies to download from Microsoft, dowloads and installs them with little user intervention.

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



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

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
General.net framework 1.1 causes that when you start windows ask for administrator to log in Pinmemberzionlion16:57 4 Sep '09  
GeneralA more straight forward script PinmemberPriyank Bolia8:41 3 May '08  
General.NET Framework 1.1/2.0/3.5 installer script Pinmemberstfx23:20 13 Oct '07  
QuestionAn offline installer PinmemberMarco Tenuti19:47 21 Oct '06  
AnswerRe: An offline installer PinmemberTed Ehrich13:42 8 Nov '06  
GeneralInstShellExec Pinmemberpana20066:17 10 Aug '06  
GeneralRe: InstShellExec [modified] PinmemberTed Ehrich17:02 13 Aug '06  
GeneralNote: The Microsoft URL's are outdated PinmemberTed Ehrich14:05 26 Apr '06  
GeneralRe: Note: The Microsoft URL's are outdated [modified] PinmemberSolel23:05 24 Aug '06  
GeneralGreat work - have u tried .NET 2.0 with it? [modified] PinmemberLightingToGo7:27 2 Mar '06  
GeneralRe: Great work - have u tried .NET 2.0 with it? PinmemberTed Ehrich14:26 26 Apr '06  
AnswerDetecting .NET 2.0 Pinmemberrazva11:01 28 Oct '06  
GeneralScript error Pinmembernmg1961:59 8 Jul '05  
GeneralRe: Script error PinmemberTed Ehrich14:24 26 Apr '06  
GeneralRe: Script error Pinmembernmg19622:33 26 Apr '06  
GeneralRe: Script error PinmemberTed Ehrich6:49 27 Apr '06  
It does check for IE6. If anything less than IE5 is installed, it installs 6. It says so in the article, but here's the relevant part in the script:
 

// Check for required IE installation
// Note that if IE 6 is downloaded, the express setup will be downloaded, however it is the same
// ie6setup.exe that would be available in the ie6full folder. The only difference is that the
// user will be presented with an option as to where to download IE 6 and a progress dialog.
// Most common components will still be installed automatically.
sRet := '';
RegQueryStringValue(HKLM, 'Software\Microsoft\Internet Explorer', 'Version', sRet);
if (not exclusiveNeeded) and (sRet < '5') then begin
exclusiveNeeded := true;
MsgBox('Internet Explorer 6 must be installed before Setup can install the application. Setup will attempt to install IE 6 for you. After the computer reboots, please run Setup again.', mbInformation, MB_OK);
memoDependenciesNeeded := memoDependenciesNeeded + ' Internet Explorer 6' #13;
iePath := ExtractFileDrive(ExpandConstant('{src}')) + '\dependencies\ie6full\ie6setup.exe';
if not FileExists(iePath) then begin
iePath := ExpandConstant('{tmp}\ie6setup.exe');
if not FileExists(iePath) then begin
isxdl_AddFile(ieURL, iePath);
downloadNeeded := true;
end;
end;
SetIniString('install', 'ie', iePath, ExpandConstant('{tmp}\dep.ini'));
end;

 
Also, .NET 1.1 only requires IE 5. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/NETFx1Redistreq1_1.asp
 
-- modified at 12:50 Thursday 27th April, 2006
GeneralRe: Script error [modified] PinmemberGlaucioSilva4:21 14 May '09  
GeneralProblem with ISTools Update Pinmemberstroi10:49 28 Dec '04  
GeneralRe: Problem with ISTools Update Pinmemberstockman0111:13 27 Apr '05  
GeneralThanks much! PinmemberOkeno Palmer21:17 11 Oct '04  
GeneralFind path Pinmembernaormeir20:33 28 Jun '04  
GeneralFix for Win98SE PinsussAndreas Wente1:13 2 Jun '04  
GeneralRe: Fix for Win98SE [modified] PinmemberGlaucioSilva4:18 14 May '09  
GeneralMissing isxdl.iss Pinmemberanandasim21:50 25 May '04  
GeneralRe: Missing isxdl.iss PinmemberAsper3318:12 26 May '04  

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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