5,696,038 members and growing! (14,749 online)
Email Password   helpLost your password?
Languages » C++ / CLI » General     Intermediate

Enhanced .NET Bootstrap Setup

By Kevin Moore

Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.
C++/CLI, VC7.1, C++Windows, .NET, .NET 1.0, .NET 1.1, Win2K, WinXP, Win2003VS.NET2003, Visual Studio, Dev

Posted: 9 Jun 2003
Updated: 24 Nov 2005
Views: 291,635
Bookmarked: 116 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
59 votes for this Article.
Popularity: 8.19 Rating: 4.63 out of 5
1 vote, 1.7%
1
1 vote, 1.7%
2
2 votes, 3.4%
3
8 votes, 13.6%
4
47 votes, 79.7%
5

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

About the Author

Kevin Moore



Occupation: Web Developer
Location: United States United States

Other popular C++ / CLI articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 298 (Total in Forum: 298) (Refresh)FirstPrevNext
Generalexe setupmember7:07 15 Mar '07  
GeneralAutoLaunch of an Apllication after installationmembermanjulasktp2:10 23 Jan '07  
GeneralRe: AutoLaunch of an Apllication after installationmembersud_sud14:41 23 Jan '07  
GeneralRe: AutoLaunch of an Apllication after installationmemberKevin Moore6:57 23 Jan '07  
GeneralAutoLaunch of an Application after installation [modified]membermanjulasktp2:01 22 Jan '07  
Generalinstall more .msi oncememberlovvver8:15 24 Sep '06  
GeneralRe: install more .msi oncememberKevin Moore12:33 26 Sep '06  
QuestionRe: install more .msi oncememberlovvver0:16 27 Sep '06  
Generalfxservicepackmembertnybubble11:30 21 Aug '06  
GeneralRe: fxservicepackmemberKevin Moore6:08 15 Sep '06  
GeneralWindows Installer 3.0membertnybubble9:59 21 Aug '06  
GeneralRe: Windows Installer 3.0memberKevin Moore6:07 15 Sep '06  
QuestionJava RuntimememberNeroToxic2:34 17 Aug '06  
AnswerRe: Java RuntimememberKevin Moore6:27 18 Aug '06  
GeneralRe: Java RuntimememberNeroToxic21:24 20 Aug '06  
GeneralRe: Java RuntimememberKevin Moore6:06 15 Sep '06  
GeneralIs it compatilbe with .NET 2.0?memberPMaksim10:39 6 Jul '06  
GeneralRe: Is it compatilbe with .NET 2.0?memberKevin Moore11:33 11 Jul '06  
QuestionBug in billboard dialogmembergreggigi20:37 21 Jun '06  
AnswerRe: Bug in billboard dialogmemberKevin Moore11:21 11 Jul '06  
Generalframework embedded setup in vs 2005memberfetras14:45 17 May '06  
GeneralRe: framework embedded setup in vs 2005memberKevin Moore11:32 11 Jul '06  
GeneralAuto Launch of Installed applicaion after instlaation completedmemberpsmukil19:37 15 Mar '06  
QuestionRe: Auto Launch of Installed applicaion after instlaation completedmembermohcin10:45 29 Aug '06  
AnswerRe: Auto Launch of Installed applicaion after instlaation completedmemberKevin Moore6:21 15 Sep '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 24 Nov 2005
Editor: Smitha Vijayan
Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2008
Web07 | Advertise on the Code Project