Giridhar Karnik
Giridhar Karnik

Reputation: 2372

How to provide hardcoded path to sourceDir in wix

I have come up with a wix heat.exe harvest command

heat.exe dir ../SessionAPI/Publish -cg C_SessionAPIWebSiteComponent -gg -scom -sreg -sfrag -srd -dr SessionAPIDirectory -var ..\SessionAPI -out ./SessionAPI.wxs

This creates .wxs files with Source like below

Source="$(..\SessionAPI)\packages.config" />

But I don't want the source to point to an environment variable and it should be want it to be like

Source="..\SessionAPI\packages.config" />

I am not able to achieve it. Can someone please shed some light on this issue?

Upvotes: 1

Views: 1362

Answers (2)

Ian Goldby
Ian Goldby

Reputation: 6186

Best not to fight the system. Use a variable as Heat expects, and then define that variable in candle.

heat.exe -var var.SessionAPI <other options>

candle.exe -dSessionAPI=..\SessionAPI <other options>

Upvotes: 1

BdN3504
BdN3504

Reputation: 1733

You can use XSLT to transform the output generated by Heat. Take a look at this question and the corresponding answer: Move from manual component creation to harvesting with the HeatDirectory task

Upvotes: 0

Related Questions