Click here to Skip to main content
15,881,172 members
Articles / Programming Languages / C++/CLI
Article

Enhanced .NET Bootstrap Setup

Rate me:
Please Sign up or sign in to vote.
4.89/5 (61 votes)
24 Nov 20053 min read 724.7K   7.2K   134   303
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


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: How to detect if MSDE is already running? Pin
pyronaught1-Jun-04 14:19
pyronaught1-Jun-04 14:19 
GeneralRe: How to detect if MSDE is already running? Pin
Kevin Moore2-Jun-04 5:52
Kevin Moore2-Jun-04 5:52 
GeneralRe: How to detect if MSDE is already running? Pin
pyronaught14-Jun-04 10:04
pyronaught14-Jun-04 10:04 
GeneralSetup is hanging for me too Pin
mattski24-May-04 18:05
mattski24-May-04 18:05 
GeneralRe: Setup is hanging for me too Pin
Kevin Moore25-May-04 4:58
Kevin Moore25-May-04 4:58 
GeneralRe: Setup is hanging for me too Pin
Anonymous30-Jul-04 14:26
Anonymous30-Jul-04 14:26 
GeneralRe: Setup is hanging for me too Pin
Kevin Moore2-Aug-04 4:18
Kevin Moore2-Aug-04 4:18 
GeneralRe: Setup is hanging for me too Pin
krishnar78992-Aug-04 4:47
krishnar78992-Aug-04 4:47 
GeneralRe: Setup is hanging for me too Pin
Member 128643210-Aug-04 0:24
Member 128643210-Aug-04 0:24 
GeneralRe: Setup is hanging for me too Pin
Kevin Moore10-Aug-04 4:14
Kevin Moore10-Aug-04 4:14 
GeneralRe: Setup is hanging for me too Pin
Kevin Moore25-Aug-04 17:33
Kevin Moore25-Aug-04 17:33 
QuestionDeploying with MSDE? Pin
Priest Of Psi18-May-04 0:18
Priest Of Psi18-May-04 0:18 
AnswerRe: Deploying with MSDE? Pin
Kevin Moore18-May-04 6:18
Kevin Moore18-May-04 6:18 
GeneralRe: Deploying with MSDE? Pin
rmorozov30-Jun-04 10:53
rmorozov30-Jun-04 10:53 
GeneralRe: Deploying with MSDE? Pin
Kevin Moore1-Jul-04 5:08
Kevin Moore1-Jul-04 5:08 
GeneralSetup is hanging Pin
projecttroy11-May-04 11:35
projecttroy11-May-04 11:35 
GeneralRe: Setup is hanging Pin
Kevin Moore13-May-04 4:38
Kevin Moore13-May-04 4:38 
GeneralRe: Setup is hanging Pin
Kevin Moore17-May-04 11:48
Kevin Moore17-May-04 11:48 
General4 questions for anyone willing ... Pin
dstein2213-Apr-04 6:36
dstein2213-Apr-04 6:36 
GeneralRe: 4 questions for anyone willing ... Pin
Kevin Moore18-Apr-04 9:22
Kevin Moore18-Apr-04 9:22 
GeneralRe: 4 questions for anyone willing ... Pin
Kevin Moore18-Apr-04 9:23
Kevin Moore18-Apr-04 9:23 
GeneralRunning error when I've added another setup.exe to program Pin
JackMartinz26-Mar-04 13:26
JackMartinz26-Mar-04 13:26 
GeneralRe: Running error when I've added another setup.exe to program Pin
Kevin Moore26-Mar-04 15:46
Kevin Moore26-Mar-04 15:46 
GeneralRe: Running error when I've added another setup.exe to program Pin
JackMartinz27-Mar-04 3:19
JackMartinz27-Mar-04 3:19 
GeneralRe: Nested Installation --- Running error when I've added another setup.exe to program Pin
JackMartinz29-Mar-04 15:31
JackMartinz29-Mar-04 15:31 

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

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