Closed Bug 1355941 Opened 7 years ago Closed 5 years ago

Misuse of $TmpVal in installer

Categories

(Firefox :: Installer, task, P5)

54 Branch
task

Tracking

()

RESOLVED FIXED
Firefox 69
Tracking Status
firefox69 --- fixed

People

(Reporter: agashlin, Assigned: jewilde)

Details

Attachments

(1 file)

This use of $TmpVal in Function preSummary seems to be assuming it is either HKLM or HKCU, as it is in Section "-Application":

>    ${If} $TmpVal == "HKLM"
>      SetShellVarContext all ; Set SHCTX to all users
>    ${EndIf}

http://searchfox.org/mozilla-central/rev/2fc8c8d483d9ec9fd0ec319c6c53807f7fa8e8a2/browser/installer/windows/nsis/installer.nsi#1013

But when preSummary runs, $TmpVal is not yet set this way, as the install hasn't started yet, so the test will always fail. A few lines down there's a check of $TmpVal against values set in CheckExistingInstall, called from leaveOptions, leaveDirectory, leaveShortcuts, so even if $TmpVal had been set to "HKLM" it wouldn't have survived if there was a preexisting Firefox install.

It's not clear whether this matters, likely not as it seems this had never worked as intended.
Priority: -- → P4
Priority: P4 → P5
Assignee: nobody → jewilde
Status: NEW → ASSIGNED

Try CI builds happening here

In the preSummary function TmpVal was being checked before it could be set
causing the test to always fail.

Type: enhancement → task
Keywords: checkin-needed

Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/66ae37d9ad69
Remove unused if block in installer.nsi; r=agashlin

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: