diff options
-rwxr-xr-x | linden/indra/newview/viewer_manifest.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index 6a34ed6..26a5d84 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -545,11 +545,16 @@ class WindowsManifest(ViewerManifest): | |||
545 | # We use the Unicode version of NSIS, available from | 545 | # We use the Unicode version of NSIS, available from |
546 | # http://www.scratchpaper.com/ | 546 | # http://www.scratchpaper.com/ |
547 | try: | 547 | try: |
548 | NSIS_path = 'C:\\Program Files\\NSIS\\Unicode\\makensis.exe' | 548 | import _winreg as reg |
549 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) | 549 | NSIS_path = reg.QueryValue(reg.HKEY_LOCAL_MACHINE, r"SOFTWARE\NSIS\Unicode") + '\\makensis.exe' |
550 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) | ||
550 | except: | 551 | except: |
551 | NSIS_path = 'C:\\Program Files (x86)\\NSIS\\Unicode\\makensis.exe' | 552 | try: |
553 | NSIS_path = os.environ['ProgramFiles'] + '\\NSIS\\Unicode\\makensis.exe' | ||
552 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) | 554 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) |
555 | except: | ||
556 | NSIS_path = os.environ['ProgramFiles(X86)'] + '\\NSIS\\Unicode\\makensis.exe' | ||
557 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) | ||
553 | # self.remove(self.dst_path_of(tempfile)) | 558 | # self.remove(self.dst_path_of(tempfile)) |
554 | # If we're on a build machine, sign the code using our Authenticode certificate. JC | 559 | # If we're on a build machine, sign the code using our Authenticode certificate. JC |
555 | sign_py = 'C:\\buildscripts\\code-signing\\sign.py' | 560 | sign_py = 'C:\\buildscripts\\code-signing\\sign.py' |