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

  • SEARCH
  • Home
  • 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 9107641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:37:16+00:00 2026-06-17T02:37:16+00:00

I’m using Wix 3.6 and I would like to implement a bootstrapper for my

  • 0

I’m using Wix 3.6 and I would like to implement a bootstrapper for my prerequisites and for certain exe’s that I need to call during my install.

I know Burn exists and have played around with it, although I don’t like the dialog it keeps up even if you show the MSI dialog set.

I currently have my prerequisites and exe files installing with C++ custom actions but I would like my user to have a better installation process and also follow the Windows Installer Best Practices guidelines.

Does anyone know to to make a bootstrapper that shows the MSI dialogs and have any examples?

  • 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. Editorial Team
    Editorial Team
    2026-06-17T02:37:17+00:00Added an answer on June 17, 2026 at 2:37 am

    At first, if you want to follow installer best practices, I wouldn’t recommend installing prerequisites using custom actions.

    Speaking about your question, here is my implementation of custom bootstrapper in C#:

    using System;
    using System.Diagnostics;
    using System.IO;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    namespace SetupBootstrapper
    {
        class Program
        {
            [STAThread]
            static void Main(string[] args)
            {
                var currentDir = AppDomain.CurrentDomain.BaseDirectory;
                var parameters = string.Empty;
                if (args.Length > 0)
                {
                    var sb = new StringBuilder();
                    foreach (var arg in args)
                    {
                        if (arg != "/i" && arg != "/x" && arg != "/u")
                        {
                            sb.Append(" ");
                            sb.Append(arg);
                        }
                    }
                    parameters = sb.ToString();
                }
    
                bool isUninstall = args.Contains("/x") || args.Contains("/u");
    
                string msiPath = Path.Combine(currentDir, "MyMsiName.msi");
    
                if(!File.Exists(msiPath))
                {
                    MessageBox.Show(string.Format("File '{0}' doesn't exist", msiPath), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
    
                string installerParameters = (isUninstall ? "/x" : "/i ") + "\"" + msiPath + "\"" + parameters;
    
                var installerProcess = new Process { StartInfo = new ProcessStartInfo("msiexec", installerParameters) { Verb = "runas" } };
    
                installerProcess.Start();
                installerProcess.WaitForExit();
            }
        }
    }
    

    To make it ask for elevated permissions I add application manifest file into project with desired access level.

    The drawback of implementing bootstrapper in .NET is of course that you can’t adequately process situation when .NET is a prerequisite itself and may be absent on target machine.

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

Sidebar

Related Questions

I would like to run a str_replace or preg_replace which looks for certain words
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I have thousands of HTML files to process using Groovy/Java and I need to
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string

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.