[wix-users] Include (or not) files based in Build Configuration

Carlos Sosa carlos.sosa.us at outlook.com
Thu Apr 26 13:55:58 PDT 2018


1000 Tnxs!!!!
They were on the same fragment, moving them into their own, fixed the issue.

Best.


From: Edwin Castro [mailto:egcastr at gmail.com]
Sent: Thursday, April 26, 2018 1:07 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Carlos Sosa <carlos.sosa.us at outlook.com>
Subject: Re: [wix-users] Include (or not) files based in Build Configuration

Are the Debug and Releae PackageGroups defined in the same Fragment? If so, then they are both included anytime one of them is referenced.

Ensure the Debug PackageGroup is defined in its own Fragment and the Release PackageGroup is defined in a different Fragment. Similarly, any other references should be separated into appropriate Fragments so they are included only if actually referenced.

--
Edwin G. Castro


On Thu, Apr 26, 2018 at 10:58 AM, Carlos Sosa via wix-users <wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:

Hello I'm creating a bundle that works well, however the components are really large, the total Installer is about  MB.
Since we do not want to copy all the files, all the time due to the space they use in our build server (bamboo) I'm trying to create a condition to only add these if Configuration = Release.

I tried this:

<Chain>
      <?if $(var.Configuration) = Debug ?>
      <!-- DEBUG ONLY -->
      <PackageGroupRef Id="Debug"/>
      <!-- END DEBUG ONLY -->
      <?else?>
      <!-- RELEASE ONLY -->
      <PackageGroupRef Id="Release"/>
      <!-- END RELEASE ONLY -->
      <?endif?>
</Chain>

This installs only the packages in its corresponding group (good) BUT IT INCLUDES ALL of the files in the installer leaving it the same size.
Is there a way to not include the "extra" files when in Debug?

Any direction is appreciated.
Best.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list