Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WiX: How to use relative path to SolutionDir

I have 2 folders with solutions:

MyNETProject (NET project) MyWiXInstaller (WiXProject)

My installer needs to get files from MyNETProject\bin\Release and to pack them to installer. How I can set path to NET project in WiX using SoultionDir variable? I have tried this way:

$(var.SolutionDir)..\MyNETProject\bin\Release

But it does not work.

like image 636
ZedZip Avatar asked Jan 21 '14 13:01

ZedZip


1 Answers

Make sure you have added a reference to your project from your wixproj, then you can use the following:

$(var.MyProject.TargetDir)

You can read more about it on the wix toolset site: Using Project References and Variables

like image 150
David Martin Avatar answered Sep 27 '22 19:09

David Martin