Handle 64-bit apps properly in WiX

This commit is contained in:
Raoul Snyman 2019-04-10 14:27:09 -07:00
parent 96070b52a5
commit c0e6dfc226
1 changed files with 4 additions and 1 deletions

View File

@ -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)