Closed Bug 568904 Opened 16 years ago Closed 15 years ago

Don't perform a shell refresh when there are no shortcuts for the installation when updating app modal id's

Categories

(Firefox :: Installer, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(3 files)

or at the very least don't perform a shell refresh when there are no shortcuts to update. Seen while running mochitest-chrome tests
Might be a good thing to not try to update the shortcut app modal id's on first run as well
Attached patch patchSplinter Review
Doesn't look like ${UnloadUAC} is needed either, as wel don't init it for this. So I just replaced Goto finish w/ Quit.
Assignee: nobody → jmathies
Attachment #448084 - Flags: review?(robert.bugzilla)
Comment on attachment 448084 [details] [diff] [review] patch >diff --git a/toolkit/mozapps/installer/windows/nsis/common.nsh b/toolkit/mozapps/installer/windows/nsis/common.nsh >--- a/toolkit/mozapps/installer/windows/nsis/common.nsh >+++ b/toolkit/mozapps/installer/windows/nsis/common.nsh >@@ -4675,17 +4675,17 @@ > > StrCmp "$R0" "" continue +1 > > ; Update this user's shortcuts with the latest app user model id. > ClearErrors > ${GetOptions} "$R0" "/UpdateShortcutAppUserModelIds" $R2 > IfErrors hideshortcuts +1 > ${UpdateShortcutAppModelIDs} "$INSTDIR\${FileMainEXE}" "${AppUserModelID}" >- GoTo finish >+ Quit ; no need for any shutdown. nit: Please use the same comment as used in the other cases. ; Nothing initialized so no need to call OnEndCommon r=me with that and thanks!
Attachment #448084 - Flags: review?(robert.bugzilla) → review+
Hey Jim, just had a thought about this. I wonder if the shell keeps the previous value if the shortcut's value is changed and the shell isn't refreshed? If so, this approach won't work
(In reply to comment #4) > Hey Jim, just had a thought about this. I wonder if the shell keeps the > previous value if the shortcut's value is changed and the shell isn't > refreshed? If so, this approach won't work Not sure, I'll test before I land to be sure that isn't the case.
Hey Jim, this patch makes it so the shell is only refreshed when shortcuts for this install location are found. I suspect this could be better optimized but this takes care of the case I keep running into which is running mochitest on Win7.
Attachment #453025 - Flags: review?(jmathies)
Attachment #453025 - Flags: review?(jmathies) → review+
Summary: Don't perform a shell refresh when updating shortcut app modal id's → Don't perform a shell refresh when there are no shortcuts for the installation when updating app modal id's
Assignee: jmathies → robert.bugzilla
Status: NEW → ASSIGNED
We should request blocking on one or both of these. Rob any preference?
Comment on attachment 453025 [details] [diff] [review] patch - only refresh when shortcuts for this install location are found Jim, I haven't had a chance to check if the first patch is safe and since I know the second one is I'll request approval for it.
Attachment #453025 - Flags: approval2.0?
Attachment #453025 - Flags: approval2.0? → approval2.0+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b7
I seem to have lost my jump lists on the taskbar. Wondering if this patch might have broken something.
(In reply to comment #11) > I seem to have lost my jump lists on the taskbar. Wondering if this patch might > have broken something. Never mind, I had jl disabled for testing bug 594821. :S Sorry for the bug spam.
Component: NSIS Installer → Installer
Product: Toolkit → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: