Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 147811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:50:49+00:00 2026-05-11T08:50:49+00:00

I am creating an .msi package for the application which has a prerequisite for

  • 0

I am creating an .msi package for the application which has a prerequisite for installation. I am using the Visual Studio 2005 Bootstrapper for this task. To this end, I did the following: Located the folder C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ and created a folder for my prerequisite (made it same structure as ‘dotnetfx’); created the ‘product.xml’ and ‘package.xml’ and placed them appropriately. I kept the xml files very simple so far to test the installation:

product.xml

<?xml version='1.0' encoding='utf-8'?> <Product ProductCode='MyPrereq' xmlns='http://schemas.microsoft.com/developer/2004/01/bootstrapper'>   <PackageFiles CopyAllPackageFiles='false'>     <PackageFile Name='MyPrereq.exe' />   </PackageFiles>   <InstallChecks>   </InstallChecks>   <Commands Reboot='None'>     <Command PackageFile='MyPrereq.exe' EstimatedInstallSeconds='90'>       <InstallConditions>       </InstallConditions>       <ExitCodes>     <ExitCode Value='0' Result='Success'/>         <DefaultExitCode Result='Fail' String='GeneralFailure' FormatMessageFromSystem='true' />       </ExitCodes>     </Command>   </Commands> </Product> 

package.xml

<?xml version='1.0' encoding='utf-8'?> <Package Name='MyPrereq' Culture='Culture' xmlns='http://schemas.microsoft.com/developer/2004/01/bootstrapper'>   <Strings>     <String Name='Culture'>en</String>     <String Name='DisplayName'>MyPrereq</String>     <String Name='GeneralFailure'>A fatal error occurred. The installation failed.</String>   </Strings> </Package> 

Now I can add the prerequisite from the list and build my setup project.

The problem:

The build output is the ‘setup.exe’, the ‘MyApp.msi’ package, plus the subfolder called ‘MyPrereq’ which contains ‘MyPrereq.exe’.

I would like the build to create a ‘setup.exe’ and a single ‘MyApp.msi’, which would contain the ‘MyPrereq’ inside, with no additional files/directories.

I know that the .NET framework is another prereq for my app, and it is included in the same .msi, so that should be possible somehow.

How can I achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:50:49+00:00Added an answer on May 11, 2026 at 8:50 am

    You can create a self-extracting installer with tools such as IExpress (coming with Windows) containing all files in a single executable (see this SO posting).

    You cannot have an MSI file installing its own pre-requisites. First, because Windows Installer itself is a pre-requisite (and must be installed by a non MSI exe) and second because Windows Installer installations are transactional and don’t support the chained execution of MSI files. This basically means that one MSI installation cannot start another MSI installation. As a consequence, any pre-requisites must be installed by a separate bootstrapper (by the way, the installation is no longer transactional – the pre-requisites won’t get uninstalled if your MSI installation fails).

    There seems to be a basic mis-understanding about the bootstrapper mechanism though. The bootstrapper can currently only be generated by Visual Studio or MSBuild. Afaik it is not possible with WiX. Look for the GenerateBootstrapper task in MSBuild (see this SO posting).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 110k
  • Answers 110k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer HTML: <div id="something">... content ...</div> CSS: #something { position: absolute;… May 11, 2026 at 9:37 pm
  • Editorial Team
    Editorial Team added an answer I have included my entire ODBC Reconnect function below. This… May 11, 2026 at 9:37 pm
  • Editorial Team
    Editorial Team added an answer One simple approach would be to look at the first… May 11, 2026 at 9:37 pm

Related Questions

I am considering helping an open-source gaming project with creating their setup file. The
I wand to construct an MSI which, in its installation process, will deploy itself
I have a product which has been traditionally shipped as an MSI file. It
I am creating an SQL view for a file that strips out the spaces

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.