• Blog
  • Info Support
  • Career
  • Training
  • International Group
  • Info Support
  • Blog
  • Career
  • Training
  • International Group
  • Search
logo InfoSupport
  • Latest blogs
  • Popular blogs
  • Experts
      • All
      • Bloggers
      • Speakers
  • Meet us
  • About us
    • nl
    • en
    • .NET
    • 3D printing
    • Advanced Analytics
    • Agile
    • Akka
    • Alexa
    • Algorithms
    • Api's
    • Architectuur
    • Artificial Intelligence
    • ATDD
    • Augmented Reality
    • AWS
    • Azure
    • Big Data
    • Blockchain
    • Business Intelligence
    • Chatbots
    • Cloud
    • Code Combat
    • Cognitive Services
    • Communicatie
    • Containers
    • Continuous Delivery
    • CQRS
    • Cyber Security
    • Dapr
    • Data
    • Data & Analystics
    • Data Science
    • Data Warehousing
    • Databricks
    • DataOps
    • Developers life
    • DevOps
    • Digital Days
    • Digital Twin
    • Docker
    • eHealth
    • Enterprise Architecture
    • Event Sourcing
    • Hacking
    • Infrastructure & Hosting
    • Innovatie
    • Integration
    • Internet of Things
    • Java
    • Machine Learning
    • Microservices
    • Microsoft
    • Microsoft Bot Framework
    • Microsoft Data Platform
    • Mobile Development
    • Mutation Testing
    • Open source
    • Pepper
    • Power BI
    • Privacy & Ethiek
    • Python
    • Quality Assistance & Test
    • Quality Assurance & Test
    • Requirements Management
    • Scala
    • Scratch
    • Security
    • SharePoint
    • Software Architecture
    • Software development
    • Software Factory
    • SQL Server
    • SSL
    • Start-up
    • Startup thinking
    • Stryker
    • Test Quality
    • Testing
    • TLS
    • TypeScript
    • Various
    • Web Development
    • Web-scale IT
    • Xamarin
    • All
    • Bloggers
    • Speakers
Home » Using project references in WiX
  • Using project references in WiX

    • By Manuel Riezebosch
    • Various 13 years ago
    • Various 0 comments
    • Various Various
    Using project references in WiX

    For those who don’t know it yet: you can use project references in your WiX installer project and use these inside the WXS files!

    In the example below I’ve added a reference from the Setup project to the Program project.

    image

    Look at the lines 12 and 13 where I use project reference variables to point to the output location and the output file name:

       1: <?xml version="1.0" encoding="UTF-8"?>

       2: <Wix >="http://schemas.microsoft.com/wix/2006/wi">

       3:   <Product Id="YOURGUIDHERE" Name="Setup" Language="1033" Version="1.0.0.0" Manufacturer="Setup" UpgradeCode="YOURGUIDHERE">

       4:     <Package InstallerVersion="200" Compressed="yes" />

       5:  

       6:     <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

       7:  

       8:     <Directory Id="TARGETDIR" Name="SourceDir">

       9:       <Directory Id="ProgramFilesFolder">

      10:         <Directory Id="INSTALLLOCATION" Name="MyProject">

      11:           <Component Id="ProductComponent" Guid="YOURGUIDHERE">

      12:             <File Name="$(var.Program.TargetFileName)"

      13:                   Source="$(var.Program.TargetPath)" />

      14:           </Component>

      15:         </Directory>

      16:       </Directory>

      17:     </Directory>

      18:  

      19:     <Feature Id="ProductFeature" Title="Setup" Level="1">

      20:       <ComponentRef Id="ProductComponent" />

      21:     </Feature>

      22:   </Product>

      23: </Wix>

    The sweet thing about this is that it nicely integrates with TeamBuild! You don’t have to worry about the actual location of included items. Even resource files that are not part of the output can be referred to by using the solution directory variable.  All available project reference variables can be found in the documentation.

     

    The only problem I’ve discovered yet when referencing multiple projects with the same name…

    Share this

Manuel Riezebosch

View profile

IT Training at Info Support

Which training fits you?

Consultancy

Consultancy

Related blogs

  • Configuring SQL Server encrypted connections using Powe…

    Configuring SQL Server encrypted connections using Powe… Léon Bouquiet - 4 months ago

  • Video Conferencing en OBS Studio koppelen: online prese…

    Video Conferencing en OBS Studio koppelen: online prese… Maaike Brouwer - 3 years ago

  • Verantwoordelijkheid pakken in jouw eigen persoonlijke …

    Verantwoordelijkheid pakken in jouw eigen persoonlijke … Stephan Versteegh - 3 years ago

Data Discovery Channel

  • Data+AI Summit 2023

  • Blijf je Azure cloud omgeving de baas met CloudXcellence

  • MLOps

Nieuwsbrief

* verplichte velden

Contact

  • Head office NL
  • Kruisboog 42
  • 3905 TG Veenendaal
  • T +31 318 552020
  • Call
  • Mail
  • Directions
  • Head office BE
  • Generaal De Wittelaan 17
  • bus 30 2800 Mechelen
  • T +32 15 286370
  • Call
  • Mail
  • Directions

Follow us

  • Twitter
  • Facebook
  • Linkedin
  • Youtube

Newsletter

Sign in

Extra

  • Media Library
  • Disclaimer
  • Algemene voorwaarden
  • ISHBS Webmail
  • Extranet
Beheer cookie toestemming
Deze website maakt gebruik van Functionele en Analytische cookies voor website optimalisatie en statistieken.
Functioneel Always active
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een website of over verschillende websites te volgen voor soortgelijke marketingdoeleinden.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
Voorkeuren
{title} {title} {title}