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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:44:01+00:00 2026-05-28T18:44:01+00:00

Similiar question: Reusing WIX components to speed up candle/light My project has the very

  • 0

Similiar question: Reusing WIX components to speed up candle/light

My project has the very same problem as the one referenced; a very large static database that never changes is compressed into the msi every time a build is required. I would like to do as the question asks: reuse a pre-compressed cab file to speed up the build time.

I started doing as the answer suggests, using the cabCache property. I added the following to the .wixproj:

<CabinetCachePath>cabs</CabinetCachePath>
<ReuseCabinetCache>True</ReuseCabinetCache>

I then seperated the static data into a fragment:

<Fragmet>
  <Media Id="2" Cabinet="static.cab" EmbedCab="no" />
  <Component Id="staticCab" Guid="..." >
    Files ...
  </Component>

And the fragment was referenced in the feature:

<ComponentRef Id="staticCab" />

This created the cab file, but left it empty. My next thought was the use a Merge Module. I created the module:

<Module Id="StaticModule" Language="1033" Version="1.0.0.0" >
  <Package ...>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="MergeRedirectFolder" Name=".">
        <Component Id="StaticFiles" Guid="...">
          Files...
        </ -- End all XML Tags

And then merged it:

<Directory Id="StaticDir" Name="static">
  <Merge Id="StaticModule" Language="1033" src="..\Static\bin\Release\static.msm" />
</Directory>

<Feature ...>
  <MergeRef Id="StaticModule"/>
</Feature>

Even after all this, the CabinetCache is still being rebuilt every time.

I guess my question would be what is the correct way to use ReuseCabinetCache. I’m still learning WIX, so I apologize if the answer is evident. I just am not sure how to use it.

Edit: A MergeModule would not be ideal since there is no need to share that logic with other msi’s. It is only useful to this single project to a single development team.

  • 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-28T18:44:02+00:00Added an answer on May 28, 2026 at 6:44 pm

    I’m going to go ahead and answer my own question since it turned out to be so simple.

    Change the .wxiproj to have these properties in

    <CabinetCachePath>cabs</CabinetCachePath>
    <ReuseCabinetCache>True</ReuseCabinetCache>
    

    Add a media to the .wxs install

    <Media Id="2" Cabinet="static.cab" EmbedCab="yes" />
    

    In the Directory tag where you store the static files, add DiskId="2".

    This will do a couple of things. First you are telling Wix that you wan’t to store the cabinets in a path to reuse the cabinets. Creating a new cabinet and only storing static data in it (or data that doesn’t change often) will cause Wix to use the cached version of the cabinet. Wix validates the cabinets by ensuring that:

    • The number of files in the cached cabinet matches the number of files being built.
    • The names of the files are all identical.
    • The order of files is identical.
    • The timestamps for all files all identical.

    (Source: http://wix.sourceforge.net/manual-wix3/optimizing_builds.htm)

    No wonder I couldn’t find any documentation on it. Its so easy to do it should have been apparent to me.

    Update: Also, multiple threads are used to build multiple cabinets. Creating multiple cabinets will improve the speed even more.

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

Sidebar

Related Questions

As my question says, I want to create a help window very similiar to
Well question is similiar to my previous one about glOrtho variant glOrtho OpenGL es
I see that there is a very similiar question already answered that discusses this
My question is very similiar to this: ( Binding events to buttons in an
Question is very similiar to this find duplicates but I'd like to find only
I couldn't find a similiar question in the related questions section, so figured I'd
Note: I've asked this question in a similiar format on superuser but it seems
Similar question as this one but for a Microsoft Environment. Email --> Exchange Server
A similar question has been asked: MSDN subscriptions on the cheap? , but I
I've read another similiar question on SO but there wasn't a clear answer at

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.