Click here to Skip to main content
11,636,889 members (68,837 online)
Click here to Skip to main content

Enhanced .NET Bootstrap Setup

, 24 Nov 2005 514.6K 7K 134
Rate this:
Please Sign up or sign in to vote.
Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.

Sample Image - DotNetSetup.gif

Introduction

In looking to install my .NET program on a Windows 98 or ME platform and even the newer XP and 2000 versions, I ran into several difficulties. There are several requirements to running a .NET program. The first is that the .NET framework needs to be installed prior to installing your program. The second problem is that one of the requirements for a .NET program is that IE 5.01 be installed. Windows 98 comes with IE 4.01 and Windows 98 SE comes with 5.0. And all installer files created by VS use the newer Microsoft Installer (version 2.0). I found the Microsoft setup program to be useful but not enough. So I set out to update the program. Little did I know that I had to dredge up my old Win API skills.

What you need to know

Note: This program was compiled with VS 2003 so the solution file may not work with older versions. I believe that the project will open in older versions as I was asked to convert the solution and not the project.

In order to use this program, you just have to update the settings.ini file.

Settings

The settings are:

  • MSI: Use this to point to your installer file.
  • ProductName: Use this to name your product.
  • FxInstallerPath: This is the path to the .NET installer. It looks for a file named Dotnetfx.exe.
  • IEInstallerPath: This is the path for IE 6.01. It looks for ie6setup.exe.
  • MSIInstallerPath: This is the path for MSI 2.0 (Microsoft's new installer). It looks for two files that you can download from Microsoft's site, InstMsiW.exe and InstMsiA.exe. These are for different versions of Windows.
  • MDACInstallerPath: This is the path for MDAC 2.7 (Microsoft Data Access). It looks for MDAC_TYP.EXE.
  • MDACVersion: 2.7 is the default.
  • .NetVersion: This can be v1.0 or v1.1.
  • MSDEInstallerPath: This is the path to the MSDE installer (Microsoft SQL Server Desktop Engine). It looks for a file named setup.exe.
  • MSDEParams: /settings <settings.ini file> SAPWD="strongpassword" - Note that a strong password is required.

All of the files above were downloaded from Microsoft's site so I won't include them. Note that I had to extract the MSDE files to a folder. Those files contained the setup files which are needed for the installer. The parameters are very important as the setup.exe program will not run without them. It is designed to be a silent application. The password is required but the settings file is not.

Place all of your files in a folder under this version of setup.exe and the settings.ini file. If any of the components above need installing, the dialog shown above will show up, otherwise your installer will run.

The source code is included if you need to make modifications.

Changes from Microsoft's version of bootstrapper:

  1. New dialog that shows what will be installed.
  2. New entries in the settings.ini file for IE 6, MSI, MDAC, & MSDE.
  3. New code for reading those entries.
  4. Code for displaying the dialog box and launching the new programs.

New Features

  1. Added MSDE support. This was added after a user request. It has not been fully tested.

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

Share

About the Author

Kevin Moore
Web Developer
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
Generalframework embedded setup in vs 2005 Pin
fetras17-May-06 13:45
memberfetras17-May-06 13:45 
GeneralRe: framework embedded setup in vs 2005 Pin
Kevin Moore11-Jul-06 10:32
memberKevin Moore11-Jul-06 10:32 
GeneralAuto Launch of Installed applicaion after instlaation completed Pin
psmukil15-Mar-06 18:37
memberpsmukil15-Mar-06 18:37 
QuestionRe: Auto Launch of Installed applicaion after instlaation completed Pin
mohcin29-Aug-06 9:45
membermohcin29-Aug-06 9:45 
AnswerRe: Auto Launch of Installed applicaion after instlaation completed Pin
Kevin Moore15-Sep-06 5:21
memberKevin Moore15-Sep-06 5:21 
QuestionLatest Exe please? Pin
malcomm29-Jan-06 12:52
membermalcomm29-Jan-06 12:52 
GeneralResources Pin
adras4-Jan-06 23:31
memberadras4-Jan-06 23:31 
GeneralRe: Resources Pin
Kevin Moore5-Jan-06 12:13
memberKevin Moore5-Jan-06 12:13 
GeneralRe: Resources Pin
psmukil15-Mar-06 18:32
memberpsmukil15-Mar-06 18:32 
GeneralRe: Resources Pin
Kevin Moore15-Sep-06 5:19
memberKevin Moore15-Sep-06 5:19 
GeneralUse Realitive paths Pin
Joe Fuentes30-Nov-05 7:44
memberJoe Fuentes30-Nov-05 7:44 
GeneralRe: Use Realitive paths Pin
Kevin Moore1-Dec-05 8:14
memberKevin Moore1-Dec-05 8:14 
GeneralRe: Use Realitive paths Pin
Joe Fuentes1-Dec-05 8:59
memberJoe Fuentes1-Dec-05 8:59 
GeneralRe: Use Realitive paths Pin
Kevin Moore3-Dec-05 12:05
memberKevin Moore3-Dec-05 12:05 
GeneralMSI Install check question Pin
Pat H22-Nov-05 5:53
memberPat H22-Nov-05 5:53 
GeneralRe: MSI Install check question Pin
Kevin Moore22-Nov-05 11:21
memberKevin Moore22-Nov-05 11:21 
GeneralRe: MSI Install check question Pin
Kevin Moore25-Nov-05 9:48
memberKevin Moore25-Nov-05 9:48 
GeneralAuto launch after installation of application Pin
psmukil15-Mar-06 18:35
memberpsmukil15-Mar-06 18:35 
GeneralRe: Auto launch after installation of application Pin
Kevin Moore16-Mar-06 4:59
memberKevin Moore16-Mar-06 4:59 
GeneralRe: MSI Install check question Pin
tnybubble22-Aug-06 12:38
membertnybubble22-Aug-06 12:38 
GeneralRe: MSI Install check question Pin
Kevin Moore15-Sep-06 5:15
memberKevin Moore15-Sep-06 5:15 
GeneralDifferent Versions of Source and Exe Pin
Pat H18-Nov-05 11:16
memberPat H18-Nov-05 11:16 
GeneralRe: Different Versions of Source and Exe Pin
Kevin Moore18-Nov-05 12:20
memberKevin Moore18-Nov-05 12:20 
GeneralRe: Different Versions of Source and Exe Pin
Pat H18-Nov-05 15:47
memberPat H18-Nov-05 15:47 
QuestionCan you send me the latest source? Pin
Krasnog3-Nov-05 3:15
memberKrasnog3-Nov-05 3:15 
AnswerRe: Can you send me the latest source? Pin
Kevin Moore3-Nov-05 4:15
memberKevin Moore3-Nov-05 4:15 
GeneralShould be &amp;quot;Windows Installer&amp;quot; Pin
temptomb31-Oct-05 14:23
membertemptomb31-Oct-05 14:23 
GeneralLatest source &amp; bug Pin
Adam Klobukowski3-Oct-05 23:53
memberAdam Klobukowski3-Oct-05 23:53 
GeneralCool stuff Pin
eyeyunk1-Oct-05 5:58
membereyeyunk1-Oct-05 5:58 
QuestionLatest source? Pin
Ron10023-Sep-05 10:07
memberRon10023-Sep-05 10:07 
GeneralLatest version of the code Pin
Jan Piet Vermaas21-Sep-05 11:48
memberJan Piet Vermaas21-Sep-05 11:48 
QuestionCould you send me the latest version? Pin
BertBert3-Sep-05 4:31
memberBertBert3-Sep-05 4:31 
AnswerRe: Could you send me the latest version? Pin
Cynar8-Sep-05 4:27
memberCynar8-Sep-05 4:27 
GeneralPlease send me the current version. Pin
chaiyapongx2-Sep-05 17:49
memberchaiyapongx2-Sep-05 17:49 
GeneralRe: Please send me the current version. Pin
chaiyapongx2-Sep-05 18:18
memberchaiyapongx2-Sep-05 18:18 
GeneralLatest version of the code Pin
Terry197720-Jul-05 18:47
sussTerry197720-Jul-05 18:47 
GeneralRe: Latest version of the code Pin
Kevin Moore21-Jul-05 10:14
memberKevin Moore21-Jul-05 10:14 
GeneralRe: Latest version of the code Pin
Mark Brandon31-Aug-05 2:39
memberMark Brandon31-Aug-05 2:39 
GeneralRe: Latest version of the code Pin
gxdata12-Aug-05 0:32
membergxdata12-Aug-05 0:32 
GeneralRe: Latest version of the code Pin
mireno12-Aug-05 10:46
membermireno12-Aug-05 10:46 
GeneralDoes not function on XP without SP2 Pin
Adam Goossens7-Jul-05 2:50
memberAdam Goossens7-Jul-05 2:50 
GeneralRe: Does not function on XP without SP2 Pin
Kevin Moore7-Jul-05 18:12
memberKevin Moore7-Jul-05 18:12 
GeneralRe: Does not function on XP without SP2 Pin
Adam Goossens7-Jul-05 18:30
memberAdam Goossens7-Jul-05 18:30 
Questioninclude JET ? Pin
kbclancy23-Jun-05 11:20
memberkbclancy23-Jun-05 11:20 
AnswerRe: include JET ? Pin
Kevin Moore24-Jun-05 5:30
memberKevin Moore24-Jun-05 5:30 
GeneralImproper MDAC version comparison Pin
joshibv16-Jun-05 3:46
memberjoshibv16-Jun-05 3:46 
GeneralRe: Improper MDAC version comparison Pin
Kevin Moore16-Jun-05 8:37
memberKevin Moore16-Jun-05 8:37 
GeneralRe: Improper MDAC version comparison Pin
joshibv16-Jun-05 19:16
memberjoshibv16-Jun-05 19:16 
GeneralIE6 &amp; Licensing Pin
naeem_s24-May-05 1:47
membernaeem_s24-May-05 1:47 
GeneralRe: IE6 &amp; Licensing Pin
Kevin Moore24-May-05 4:01
memberKevin Moore24-May-05 4:01 

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.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150728.1 | Last Updated 24 Nov 2005
Article Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid