Closed
Bug 786407
Opened 13 years ago
Closed 12 years ago
"UninstallString" for natively installed web apps should be quoted properly
Categories
(Firefox Graveyard :: Web Apps, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: jesper, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
1.42 KB,
patch
|
Felipe
:
review+
|
Details | Diff | Splinter Review |
WebApps cannot be uninstalled if the path to webapp-uninstaller.exe contains spaces such as:
C:\Users\Jesper Staun Hansen\AppData\Roaming\http;m.lanyrd.com\uninstall\webapp-uninstaller.exe
Easily confirmed as navigating to HKEY_USERS\S-1-5-21-3528198288-4018989589-2019204228-1000\Software\Microsoft\Windows\CurrentVersion\Uninstall\http://m.lanyrd.com
then changing UninstallString to place quotes around the string fixes the issue.
There could possible be issues with the other path strings as well, but I do not know how these strings are used.
Comment 1•13 years ago
|
||
This is probably a one-line fix. We'll want to change the line [1] to read:
subKey.writeStringValue("UninstallString", "\"" + this.uninstallerFile.path + "\"");
I'm not sure, but it probably makes sense to do the same thing for the `InstallLocation` key.
[1] https://mxr.mozilla.org/mozilla-central/source/toolkit/webapps/WebappsInstaller.jsm?rev=7e21e4ace8b7#375
Comment 2•13 years ago
|
||
Tim: is this something you can take on?
Comment 3•13 years ago
|
||
I haven't built or tested this patch, but this should fix the issue.
I'll post back when I've tested.
Comment 4•13 years ago
|
||
Comment on attachment 656591 [details] [diff] [review]
Patch
Thanks for looking into this Tim
Attachment #656591 -
Flags: review?(felipc) → review+
Comment 5•13 years ago
|
||
Comment on attachment 656591 [details] [diff] [review]
Patch
Actually I'm not able to reproduce this bug.
I tested our uninstaller by moving an installation of Favimon to "C:\path with spaces". I modified the registry entries to point to the new location, but did _not_ add quotes. I ran the uninstaller and it worked fine.
Additionally, tons of other apps have their uninstallers at locations with spaces in them (especially the "C:\Program Files[...]" variety) and none of them put quotes in their `UninstallString` values.
Jesper, can you provide more precise steps to reproduce? Or can someone else verify that this is indeed an issue?
Thanks!
Attachment #656591 -
Flags: review+
Reporter | ||
Comment 6•13 years ago
|
||
1. https://dl.dropbox.com/u/72157/Webapp.html#details7
2. Install it
3. Windows control panel (Kontrolpanel)
4. Remove programs (Fjern eller rediger et program) - http://i.imgur.com/yFPJh.png
5. Find QR Code Generator in list
6. Remove (Fjern)
7. Dialog appear with text that removing failed - http://i.imgur.com/wka4s.png
Additional steps to confirm missing quotes:
8. open regedit
9. navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\http://classictutorials.com - http://i.imgur.com/hico7.png
10. Edit UninstallString to have quotes around the entire string - http://i.imgur.com/Ly2TD.png
11. Try to remove again from step 6
12. Removal dialog now appears - http://i.imgur.com/RCMkl.png
If it's not the spaces then I have no idea what it is :-)
Comment 7•13 years ago
|
||
I created an account on my machine called "Jesper Staun Hansen," installed the "QR Code Generator" app from the dropbox link provided, ran it, then uninstalled it. I didn't see this issue reproduce so I have to close it as "Works for me." Please reopen if more information becomes available. Thanks!
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Comment 8•12 years ago
|
||
A similar issue was recently discussed in bug 868746.
In case users ever copy+paste the UninstallString into a terminal as part of a social engineering attack, we should quote the UninstallString.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
See Also: → 868746
Summary: WebApps cannot be uninstalled if path to uninstaller contains spaces such as a username → "UninstallString" for natively installed web apps should be quoted properly
Updated•12 years ago
|
Assignee: tabraldes → nobody
Comment 9•12 years ago
|
||
Could we land your patch (after unbitrotting)?
Updated•12 years ago
|
Flags: needinfo?(tabraldes)
Updated•12 years ago
|
Priority: -- → P2
Comment 11•12 years ago
|
||
I've just updated Tim's patch and it was already reviewed by Felipe. Re-requesting review just to be safe.
Attachment #656591 -
Attachment is obsolete: true
Attachment #785823 -
Flags: review?(felipc)
Updated•12 years ago
|
Attachment #785823 -
Flags: review?(felipc) → review+
Updated•12 years ago
|
Keywords: checkin-needed
Comment 12•12 years ago
|
||
Keywords: checkin-needed
Comment 13•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Updated•12 years ago
|
Assignee | ||
Updated•10 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•