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 7979081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:40:29+00:00 2026-06-04T09:40:29+00:00

If I would like to dynamically create an MSI installer, is there a way

  • 0

If I would like to dynamically create an MSI installer, is there a way to do this without including the wix sdk applications such as candle.exe and light.exe? If my application is written in C#, could I reference the Microsoft.Deployment.WindowsInstaller.Package.dll, or some other wix dlls, and create a new MSI file for instance?

I basically want to dynamically create an msi file, using a console application, without having to reference the wix console applications.

  • 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-04T09:40:31+00:00Added an answer on June 4, 2026 at 9:40 am

    If my application is written in C#, could I reference the Microsoft.Deployment.WindowsInstaller.Package.dll, or some other wix dlls, and create a new MSI file for instance?

    Yes. Those Microsoft.Deployment.* DLLs are referred to as the “Deployment Tools Foundation”, and they are documented in dtf.chm and dtfapi.chm files in the doc folder of your wix installation.

    Creating a new MSI from scratch would start like this:

    string path = "path/to/myinstaller.msi";
    using (var db = new Database(path, DatabaseOpenMode.Create))
    {
        // lots of SQL queries to put stuff in the database here
    }
    

    Alternatively, you could copy an existing template MSI file, and then use SQL queries to modify it.

    You would also need to package binary files and add them to the database. You can do that by opening the msi with the InstallPackage class.

    In any case, creating an installer in this way will require detailed knowledge of the Windows Installer Database Tables.

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

Sidebar

Related Questions

I would like to dynamically create a minimal transparent bar graph to display over
I would like to dynamically create a set of labels in an assembly function
I have an XNA 3.1 program and would like to create an installer that
I have a situation where I would like to dynamically create an object through
I have a template linkedList that I would like to dynamically create head pointers
I would like to dynamically create a text box then dynamically position the text
I would like to dynamically create thumbnails based on parameters in the URL. For
I would like to create a form dynamically instead of using the XAML to
I am learning ASP.Net. I have a dynamically created ImageButton that I would like
I created Extjs.Panel and now I would like to dynamically load a content to

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.