diff options
Diffstat (limited to 'msi')
-rw-r--r--[-rwxr-xr-x] | msi/createmsi.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/msi/createmsi.py b/msi/createmsi.py index 4fbc2d6..a6a29e4 100755..100644 --- a/msi/createmsi.py +++ b/msi/createmsi.py @@ -142,8 +142,11 @@ class PackageGenerator: def build_package(self): - subprocess.check_call(['c:\\Program Files\\Wix Toolset v3.11\\bin\candle', self.main_xml]) - subprocess.check_call(['c:\\Program Files\\Wix Toolset v3.11\\bin\light', + wixdir = 'c:\\Program Files\\Wix Toolset v3.11\\bin' + if not os.path.isdir(wixdir): + wixdir = 'c:\\Program Files (x86)\\Wix Toolset v3.11\\bin' + subprocess.check_call([os.path.join(wixdir, 'candle'), self.main_xml]) + subprocess.check_call([os.path.join(wixdir, 'light'), '-ext', 'WixUIExtension', '-cultures:en-us', '-dWixUILicenseRtf=msi\\License.rtf', |