Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
b09f61f6
Commit
b09f61f6
authored
2 years ago
by
Bennett Goble
Browse files
Options
Downloads
Patches
Plain Diff
SL-18679: Find newer NSIS installation path
parent
b28971e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/installers/windows/installer_template.nsi
+0
-1
0 additions, 1 deletion
indra/newview/installers/windows/installer_template.nsi
indra/newview/viewer_manifest.py
+9
-21
9 additions, 21 deletions
indra/newview/viewer_manifest.py
with
9 additions
and
22 deletions
indra/newview/installers/windows/installer_template.nsi
+
0
−
1
View file @
b09f61f6
...
...
@@ -26,7 +26,6 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Compiler flags
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Unicode true
SetOverwrite on # Overwrite files
SetCompress auto # Compress if saves space
SetCompressor /solid lzma # Compress whole installer as one block
...
...
This diff is collapsed.
Click to expand it.
indra/newview/viewer_manifest.py
+
9
−
21
View file @
b09f61f6
...
...
@@ -790,27 +790,15 @@ def package_finish(self):
# Check two paths, one for Program Files, and one for Program Files (x86).
# Yay 64bit windows.
for
ProgramFiles
in
'
ProgramFiles
'
,
'
ProgramFiles(x86)
'
:
NSIS_path
=
os
.
path
.
expandvars
(
r
'
${%s}\NSIS\makensis.exe
'
%
ProgramFiles
)
if
os
.
path
.
exists
(
NSIS_path
):
break
installer_created
=
False
nsis_attempts
=
3
nsis_retry_wait
=
15
for
attempt
in
range
(
nsis_attempts
):
try
:
self
.
run_command
([
NSIS_path
,
'
/V2
'
,
self
.
dst_path_of
(
tempfile
)])
except
ManifestError
as
err
:
if
attempt
+
1
<
nsis_attempts
:
print
(
"
nsis failed, waiting %d seconds before retrying
"
%
nsis_retry_wait
,
file
=
sys
.
stderr
)
time
.
sleep
(
nsis_retry_wait
)
nsis_retry_wait
*=
2
else
:
# NSIS worked! Done!
break
else
:
print
(
"
Maximum nsis attempts exceeded; giving up
"
,
file
=
sys
.
stderr
)
raise
nsis_path
=
"
makensis.exe
"
for
program_files
in
'
${programfiles}
'
,
'
${programfiles(x86)}
'
:
for
nesis_path
in
'
NSIS
'
,
'
NSIS
\\
Unicode
'
:
possible_path
=
os
.
path
.
expandvars
(
f
"
{
program_files
}
\\
{
nesis_path
}
\\
makensis.exe
"
)
if
os
.
path
.
exists
(
possible_path
):
nsis_path
=
possible_path
break
self
.
run_command
([
possible_path
,
'
/V2
'
,
self
.
dst_path_of
(
tempfile
)])
self
.
sign
(
installer_file
)
self
.
created_path
(
self
.
dst_path_of
(
installer_file
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment