diff --git a/builders/windows-builder.py b/builders/windows-builder.py index 40174b1..20af1c1 100644 --- a/builders/windows-builder.py +++ b/builders/windows-builder.py @@ -200,7 +200,11 @@ class WindowsBuilder(Builder): Run the WiX toolset to create an installer """ self._print('Running WiX tools...') - msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(self.version))) + if self.arch == 'x64': + version = '{}-x64'.format(self.version) + else: + version = self.version + msi_file = os.path.abspath(os.path.join(self.dist_path, '..', 'OpenLP-{}.msi'.format(version))) if os.path.exists(msi_file): self._print_verbose('Removing old MSI file') os.unlink(msi_file)