summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorcallum@lindenlab.com <callum@lindenlab.com>2017-03-11 16:15:37 -0800
committercallum@lindenlab.com <callum@lindenlab.com>2017-03-11 16:15:37 -0800
commit1053c5ca407917c3bc842cbcb80786d43206c5b3 (patch)
tree4cf7fa727201104ca9fc38e0ef280f314acb94d7 /indra/newview
parent10bcd510b59fe73bf9e948de3dce9cea6d7d8b93 (diff)
Update: (thanks Drake) MAINT-6998 [Project Alex Ivy] 64bit viewer installs to Program Files (x86) by default. Added option to engage 32 or 64 bit registry
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/installers/windows/installer_template.nsi1
-rwxr-xr-xindra/newview/viewer_manifest.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi
index 42f8e0ce1f..7a135fa53c 100644
--- a/indra/newview/installers/windows/installer_template.nsi
+++ b/indra/newview/installers/windows/installer_template.nsi
@@ -91,6 +91,7 @@ SetOverwrite on # Overwrite files by default
AutoCloseWindow true # After all files install, close window
InstallDir "%%$PROGRAMFILES%%\${INSTNAME}"
+%%REGISTRY%%
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Linden Research, Inc.\${INSTNAME}" ""
UninstallText $(UninstallTextMsg)
DirText $(DirectoryChooseTitle) $(DirectoryChooseSetup)
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 1b2c502729..7ea600f24a 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -632,8 +632,10 @@ class WindowsManifest(ViewerManifest):
"""
if(self.args['arch'].lower() == 'x86_64'):
+ registry="SetRegView 64"
program_files="$PROGRAMFILES64"
else:
+ registry="SetRegView 32"
program_files="$PROGRAMFILES32"
tempfile = "secondlife_setup_tmp.nsi"
@@ -645,6 +647,7 @@ class WindowsManifest(ViewerManifest):
"%%INST_VARS%%":inst_vars_template % substitution_strings,
"%%INSTALL_FILES%%":self.nsi_file_commands(True),
"%%$PROGRAMFILES%%":program_files,
+ "%%REGISTRY%%":registry,
"%%DELETE_FILES%%":self.nsi_file_commands(False)})
# We use the Unicode version of NSIS, available from