Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Bootstrapper for the VC++ 2005 Redists (with MSI 3.1)

, 24 Feb 2006
A discussion on deployment in Visual C++ 2005, and an amended version of the vcredist_x86.exe that includes MSI 3.1.
Bootstrapper for the VC++2005 redists (with MSI3.1)
---------------------------------------------------

Provided is the source code for the Visual C++ bootstrapper. The source code
to the bootstrapper is contained in Src.

Also provided is the source code to a DLL that is required by the installer.
The DLL is a simple hello world library that makes use of the C and C++
runtimes and dynamically loads them.

The codeproject article for this program is:
http://www.codeproject.com/cpp/vcredists_x86.asp


PREINSTALLATION STEPS.
----------------------

1. Download the following:

Windows Installer 2.0 Redistributable ANSI (InstMSIA.exe)
Windows 2000 Service Pack 4 Express Setup (SP4Express_EN.exe)
Internet Explorer 6.0 Express Setup (ie6setup.exe). Only if you use MFC.
Windows Installer 3.1 Redistributable (WindowsInstaller-kb893803-v2-x86.exe)

Links are available in the Codeproject article.

2. Copy the following from your redist folder:
VcRedist_x86.exe (obtain from your Visual Studio dir).

IF YOU DO NOT HAVE VCREDIST_X86.EXE.
------------------------------------

Read the Codeproject article for instructions on creating your own VCredist.msi
project. You also have to alter some hardcoded strings in the source.

in resource.h, change VCREDIST_NAME to VCredist.msi.
in vccrt_x86.SED, Look for the line saying:

FILE0="vcredist_x86.exe"

Change that to:

FILE0="VCredist.msi"

TO COMPILE.
-----------

Open up VCCRTBoot.sln in the root folder, make sure you have downloaded the
necessary components and build the solution.

If you get any errors in the post build step, then make sure you have properly
downloaded all the required components and have placed them in the same
directory as the solution. Also check if you need to rename any files (see
above).

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

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

oshah
Web Developer
United States United States
Mr. Shah is a reclusive C++/C# developer lurking somewhere in the depths of the city of London. He learnt physics at Kings' College London and obtained a Master in Science there. Having earned an MCAD, he teeters on the brink of transitioning from C++ to C#, unsure of which language to jump to. Fortunately, he also knows how to use .NET interop to merge code between the two languages (which means he won't have to make the choice anytime soon).
 
His interests (apart from programming) are walking, football (the real one!), philosophy, history, retro-gaming, strategy gaming, and any good game in general.
 
He maintains a website / blog / FAQ / junk at shexec32.serveftp.net, where he places the best answers he's written to the questions you've asked. If you can find him, maybe you can hire Mr. Shah to help you with anything C++[/CLI]/C#/.NET related Smile | :) .

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150327.1 | Last Updated 24 Feb 2006
Article Copyright 2005 by oshah
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid