[wix-users] Large files in bundle, integration with build server

Hoover, Jacob Jacob.Hoover at greenheck.com
Fri Apr 13 13:48:02 PDT 2018


I'm confused why you wouldn't just build the installer on the build server immediately after compiling. It should be as easy as invoking a msbuild task against the wixproj, and you can then pass in property overrides.
Ex:
  /p:BuildNumber=${bamboo.buildNumber} /p:BuildRootDir=${bamboo.build.working.directory}

Modify the wixproj to consume BuildRootDir, and pass it in as a var
Ex:
    <DefineConstants>
      $(DefineConstants);
      BuildRootDir=$(BuildRootDir);
      BuildNumber=$(BuildNumber);
    </DefineConstants>

And modify your WXS to use relative paths based off of $(var.BuildRootDir)
Ex:
      <Component Id="MyApp">
        <File Name="MyApp.exe" Source="$(var.SourceFolder)Build\Release\Bin\MyApp.exe" DiskId="1" />
      </Component>

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Colin Dawson (Astronutter) via wix-users
Sent: Thursday, April 12, 2018 3:57 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Colin Dawson (Astronutter) <c.j.dawson76 at gmail.com>
Subject: Re: [wix-users] Large files in bundle, integration with build server

What I’m working on is to pull the files from the build server, put them in a folder or several folders relative to the wix project, then build the installer based on that.

The idea is that the build server will be able to do this for me and build the msi and exe boot strapped

Regards
Colin
Cjdawson.com

Sent from my iPhone

> On 12 Apr 2018, at 17:50, Carlos Sosa via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> 
> Hello we have a working installer, we now need to integrate it with 
> bitbucket (versioning and CI) but the components are too big, the total size of the installer is  +500MB I think I remember something about always pulling the components from the Build Server, is this as simple as changing the dir references to the Build server dir or is there a better way to handle this?
> 
> Any advice is appreciated.
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/

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


More information about the wix-users mailing list