From c0e6dfc226dc8901dc872824d99a75ed3684ccda Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 10 Apr 2019 14:27:09 -0700 Subject: [PATCH] Handle 64-bit apps properly in WiX --- builders/windows-builder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builders/windows-builder.py b/builders/windows-builder.py index 2212ee4..4ba2e8b 100644 --- a/builders/windows-builder.py +++ b/builders/windows-builder.py @@ -156,7 +156,10 @@ class WindowsBuilder(Builder): source_id = md5(source.encode('utf8')).hexdigest() file_id = 'file_{source_id}'.format(source_id=source_id) component_id = 'cmp_{source_id}'.format(source_id=source_id) - file_ = E.File(Id=file_id, KeyPath="yes", Source=source) + if self.arch == 'x64': + file_ = E.File(Id=file_id, KeyPath="yes", Source=source, ProcessorArchitecture='x64') + else: + file_ = E.File(Id=file_id, KeyPath="yes", Source=source) component = E.Component(file_, Id=component_id, Guid='*') element.append(component) components.append(component)