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

Enhanced .NET Bootstrap Setup

, 24 Nov 2005
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

Comments and Discussions

 
Generaldni PinmemberdB.28-Feb-09 19:31 
GeneralThanks ! PinmemberNatza Mitzi10-May-10 22:42 
Generalexe setup PinmemberMember #392135515-Mar-07 7:07 
GeneralAutoLaunch of an Apllication after installation Pinmembermanjulasktp23-Jan-07 2:10 
GeneralRe: AutoLaunch of an Apllication after installation Pinmembersud_sud123-Jan-07 4:41 
GeneralRe: AutoLaunch of an Apllication after installation PinmemberKevin Moore23-Jan-07 6:57 
GeneralRe: AutoLaunch of an Apllication after installation Pinmembershiv_10827-Aug-09 22:00 
GeneralRe: AutoLaunch of an Apllication after installation Pinmembershiv_10827-Aug-09 22:01 
GeneralRe: AutoLaunch of an Apllication after installation PinmemberKevin Moore28-Aug-09 5:16 
GeneralAutoLaunch of an Application after installation [modified] Pinmembermanjulasktp22-Jan-07 2:01 
Generalinstall more .msi once Pinmemberlovvver24-Sep-06 8:15 
GeneralRe: install more .msi once PinmemberKevin Moore26-Sep-06 12:33 
QuestionRe: install more .msi once Pinmemberlovvver27-Sep-06 0:16 
Generalfxservicepack Pinmembertnybubble21-Aug-06 11:30 
GeneralRe: fxservicepack PinmemberKevin Moore15-Sep-06 6:08 
GeneralWindows Installer 3.0 Pinmembertnybubble21-Aug-06 9:59 
GeneralRe: Windows Installer 3.0 PinmemberKevin Moore15-Sep-06 6:07 
QuestionJava Runtime PinmemberNeroToxic17-Aug-06 2:34 
AnswerRe: Java Runtime PinmemberKevin Moore18-Aug-06 6:27 
GeneralRe: Java Runtime PinmemberNeroToxic20-Aug-06 21:24 
GeneralRe: Java Runtime PinmemberKevin Moore15-Sep-06 6:06 
QuestionIs it compatilbe with .NET 2.0? PinmemberPMaksim6-Jul-06 10:39 
AnswerRe: Is it compatilbe with .NET 2.0? PinmemberKevin Moore11-Jul-06 11:33 
QuestionBug in billboard dialog Pinmembergreggigi21-Jun-06 20:37 
AnswerRe: Bug in billboard dialog PinmemberKevin Moore11-Jul-06 11:21 
Generalframework embedded setup in vs 2005 Pinmemberfetras17-May-06 14:45 
GeneralRe: framework embedded setup in vs 2005 PinmemberKevin Moore11-Jul-06 11:32 
There is a setup and setup wizard project that you can add to your project. I believe that it creates a msi file. However, I don't think that it handles any type of bootstrapping.
Sorry I can't be of more help but I've only used to to create my own msi file.
 
Kevin
GeneralAuto Launch of Installed applicaion after instlaation completed Pinmemberpsmukil15-Mar-06 19:37 
QuestionRe: Auto Launch of Installed applicaion after instlaation completed Pinmembermohcin29-Aug-06 10:45 
AnswerRe: Auto Launch of Installed applicaion after instlaation completed PinmemberKevin Moore15-Sep-06 6:21 
QuestionLatest Exe please? Pinmembermalcomm29-Jan-06 13:52 
GeneralResources Pinmemberadras5-Jan-06 0:31 
GeneralRe: Resources PinmemberKevin Moore5-Jan-06 13:13 
GeneralRe: Resources Pinmemberpsmukil15-Mar-06 19:32 
GeneralRe: Resources PinmemberKevin Moore15-Sep-06 6:19 
GeneralUse Realitive paths PinmemberJoe Fuentes30-Nov-05 8:44 
GeneralRe: Use Realitive paths PinmemberKevin Moore1-Dec-05 9:14 
GeneralRe: Use Realitive paths PinmemberJoe Fuentes1-Dec-05 9:59 
GeneralRe: Use Realitive paths PinmemberKevin Moore3-Dec-05 13:05 
GeneralMSI Install check question PinmemberPat H22-Nov-05 6:53 
GeneralRe: MSI Install check question PinmemberKevin Moore22-Nov-05 12:21 
GeneralRe: MSI Install check question PinmemberKevin Moore25-Nov-05 10:48 
GeneralAuto launch after installation of application Pinmemberpsmukil15-Mar-06 19:35 
GeneralRe: Auto launch after installation of application PinmemberKevin Moore16-Mar-06 5:59 
GeneralRe: MSI Install check question Pinmembertnybubble22-Aug-06 13:38 
GeneralRe: MSI Install check question PinmemberKevin Moore15-Sep-06 6:15 
GeneralDifferent Versions of Source and Exe PinmemberPat H18-Nov-05 12:16 
GeneralRe: Different Versions of Source and Exe PinmemberKevin Moore18-Nov-05 13:20 
GeneralRe: Different Versions of Source and Exe PinmemberPat H18-Nov-05 16:47 
QuestionCan you send me the latest source? PinmemberKrasnog3-Nov-05 4:15 

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
Web01 | 2.8.141220.1 | Last Updated 24 Nov 2005
Article Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid