[wix-users] 32 bit component uses 64 bit directory

balachander s connecttobalachander at gmail.com
Fri Aug 16 05:26:39 PDT 2019


Hi ,

I m getting this error during linking.

candle.exe product.wxs -dTargetArch=x64

I have VarDefs.wxi file
<?if $(var.TargetArch) = x64 ?>
  <?define bitness = "(64 bits)" ?>
  <?define Win64 = "yes" ?>
  <?define shortcutArch = "(64)"?>
  <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
  <?define platformDir = "x64\"?>
  <?define use64bitsValue = "1"?>
  <?else ?>
  <?define bitness = "(32 bits)" ?>
  <?define Win64 = "no" ?>
  <?define shortcutArch = "(32)"?>
  <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
  <?define platformDir = ""?>
  <?define use64bitsValue = "0"?>
  <?endif ?>

included in the product.wxs which has various components.
Here will Win64 attribute set to yes, since include VarDefs is there or
should i maually include for all components.

or if you have other suggestions please let me know

Regards,
Balachander


More information about the wix-users mailing list