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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:44:27+00:00 2026-05-26T16:44:27+00:00

I have created a Custom Action (DTF) with C#. In that CA, I would

  • 0

I have created a Custom Action (DTF) with C#.
In that CA, I would like to extract a file from the msi (declared as Binary in wix) and run it with some arguments.
I haven’t found any samples or help about that..
I have to execute a request on the msi, but I would like to have a sample. Thanks!

  • 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-05-26T16:44:28+00:00Added an answer on May 26, 2026 at 4:44 pm

    The DTF.chm has a sample how to update the Binary table. It’s in “Working with MSI Databases” topic. And you can guess how to do the opposite operation. The code might look like this:

      using (var db = new Database("test.msi", DatabaseOpenMode.Direct))
      {
        using (var view = db.OpenView("SELECT `Data` FROM `Binary` WHERE `Name` = '{0}'", "testbinary"))
        {
          view.Execute();
          var rec = view.Fetch();
    
          var inStream = rec.GetStream("Data");
          if (inStream != null)
          {
            using (var file = File.OpenWrite("S:\\testfile.zip"))
            {
              CopyStream(inStream, file);
            }
          }
        }
      }
    

    The code of CopyStream method can be taken from this answer of omnipresent Jon Skeet. Note that if you should do this from CA, you will reference the database object like session.Database, instead of creating it.

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

Sidebar

Related Questions

I have created a custom Model Binder that inherits from DefaultModelBinder, and overriding the
I have a custom installer action that updates the PATH environment, and creates an
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have created a custom ExpandableListAdapter and everything works properly. What I'd like to
I have created a custom action within one of my controllers as follows: #
I have created a c++ custom action for a setup-project application in VS Team
I have created a custom action for items in a list (custom printing of
I have an action that looks like this: [Post] [PopulateModelFromId] public ActionResult ChangeName( string
How would one go about creating a custom action in Cocos2D that was able
I've created a Wix (3.0) custom action written in .NET. Fine. The problem is

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.