summaryrefslogtreecommitdiff
path: root/indra/newview/viewer_manifest.py
diff options
context:
space:
mode:
authorCallum Prentice <callum@gmail.com>2017-03-10 15:11:44 -0800
committerCallum Prentice <callum@gmail.com>2017-03-10 15:11:44 -0800
commit10bcd510b59fe73bf9e948de3dce9cea6d7d8b93 (patch)
tree90cc170b4ea3e7ef6e071562e6ce767fb6cbbd24 /indra/newview/viewer_manifest.py
parent39ebb2d093e0709b9b2bb118f04d5b382076fd98 (diff)
MAINT-6998 [Project Alex Ivy] 64bit viewer installs to Program Files (x86) by default.
Diffstat (limited to 'indra/newview/viewer_manifest.py')
-rwxr-xr-xindra/newview/viewer_manifest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 2d868c407d..1b2c502729 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -631,6 +631,11 @@ class WindowsManifest(ViewerManifest):
Caption "%(caption)s"
"""
+ if(self.args['arch'].lower() == 'x86_64'):
+ program_files="$PROGRAMFILES64"
+ else:
+ program_files="$PROGRAMFILES32"
+
tempfile = "secondlife_setup_tmp.nsi"
# the following replaces strings in the nsi template
# it also does python-style % substitution
@@ -639,6 +644,7 @@ class WindowsManifest(ViewerManifest):
"%%SOURCE%%":self.get_src_prefix(),
"%%INST_VARS%%":inst_vars_template % substitution_strings,
"%%INSTALL_FILES%%":self.nsi_file_commands(True),
+ "%%$PROGRAMFILES%%":program_files,
"%%DELETE_FILES%%":self.nsi_file_commands(False)})
# We use the Unicode version of NSIS, available from