WiX Heat tool, create Component with Win64 attribute
Asked Answered
B

2

5

Is there a way to generate file using heat tool which will have Win64 attribute in Component sections?

The problem is, in my 64-bit installer most of the files are 32-bit components, which must be marked as Win64="no" in Component entries. I use heat tool to generate them, so additional manual step is since required, and this brokes our automated build.

UPDATE: The short answer is "no" (which is marked as answer), I suppose I will just go with some additinal tool which will do the job.

Boatyard answered 16/8, 2012 at 6:2 Comment(0)
I
15

Heat.exe doesn't have a switch for this, but candle.exe does. Feed -arch x64 to the command line of candle.exe, and it will set platform defaults for package, components, etc.

BTW, the question was originally asked here.

Incommode answered 16/8, 2012 at 7:19 Comment(3)
Unfortunatelly this is not the functionality I need.Boatyard
Why did you accept the answer then? :) I suppose it you specify your requirements in more detail, people here could help youIncommode
Well, it answers my question: heat can't do that. I've updated the question with some details.Boatyard
J
3

I know this is old, but was just searching for the same issue and this came up.

I discovered you can still use Heat if you add the "-arch x64" to the Compiler Additional Parameters under "Tool Settings" in the Wix project properties.

Jurkoic answered 15/4, 2016 at 20:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.