WiX: Introducing the WixPdb


This post has moved here.

Comments (9)

  1. Tony says:

    So the samples in "Building a Patch using the new Patch Building System – Part 3." should have wixpdb in place of wixout?

  2. Todd says:

    I have been reading about the latest patching scheme using the wixpdb and would like to incorporate this into our environment but it appears that for this scheme to work you need to build the patch using duplicate pathing as the original build. Is this correct?

    Our environment allows for each machine to define the enlistment <root> directory(C:enlistment; D:enlistmentsproductA; etc.). Is there any processes in place to account for varying <root> paths?

  3. Hey Todd, The way I’ve solved this was making sure my source paths had a variable in them like this:

       <Fragment>

           <DirectoryRef Id="SampleProductFolder">

               <Component Id="SampleComponent" Guid="{C28843DA-EF08-41CC-BA75-D2B99D8A1983}" DiskId="1">

                   <File Id="SampleFile" Name="Sample.txt" Source=".$(var.Version)Sample.txt" />

               </Component>

           </DirectoryRef>

       </Fragment>

    Notice the $(var.Version) in the Source attribute of the File element. Whenever I build, I pass the build number in. Does this help answer your question?

  4. Todd says:

    Sorry, I should have provided much more detail.

    The issue encountered is due to not wanting to rebuild RTM on the same machine building the patch every time we need to ship a patch which appears to be the only way to use the wixpdb files. From additional reading of your other posts, I believe I will have to use the Admin Images route instead of the WixPdb’s.

    Thank you for the great information you have shared over the past years. It is greatly appreciated.

  5. I think you have a great feature request. There are hacky ways to do this but it could definitely be easier. I’ll take note of this and see what we can do in the future.

  6. I should note that the hacky way to do this is to do a string replace in the wixpdb to replace the root from the original build machine with the root for the new machine.

  7. Debug Information? says:

    Should the wixpdb files be copied into the release folders or should I only see them in the debug folders?