Closed Bug 177163 Opened 22 years ago Closed 22 years ago

Eliminate valname variable and simplify code for setting reg values

Categories

(SeaMonkey :: Installer, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: curt, Assigned: curt)

Details

Attachments

(1 file, 2 obsolete files)

This is purely code cleanup for maintenance purposes: eliminating some unecassary variables, consolidating lines of codes, making it more readable.
Attached patch Patch 1 (obsolete) — Splinter Review
perhaps in this patch we could also get rid of the "seamonkey" regdb key? it's bug 127420
Attached patch Patch 2 (obsolete) — Splinter Review
Adds the seamonkey cleanup that gemal requested. Otherwise the same as Patch 1
Attachment #104392 - Attachment is obsolete: true
Curt: Thanx for the quick fix. I was looking the the patch and found a reference to "NSUninst.exe" to places in the mozilla code. Isn't "NSUninst.exe" a Netscape only thing. Perhaps it should be moved to the netscape tree. http://lxr.mozilla.org/mozilla/source/xpinstall/packager/windows/browser.jst#384
Attached patch Patch 3Splinter Review
I guess that if we are cleaning up code we'd just as well really clean it up. This patch corrects the js scripts to use "MozillaUninstall.exe" instead of "NSUninst.exe". Further, I'm using the $UninstallFile$ variable instead of hardcoding it (this could stand to be done for the NS scripts also, I suppose, but at least they are hardcoded to the right thing). BTW, this code was part of a fix which David put in a few months back for Windows XP. There is no way it could have been working for Mozilla. I don't have Windows XP available to test against but, since it has certainly never worked it certainly isn't going to be any more broken if I check this code in. I can describe to QA how to test it, but I'll have to get to an XP machine to do even that.
Attachment #104416 - Attachment is obsolete: true
Comment on attachment 104523 [details] [diff] [review] Patch 3 r=jbetak I tried to follow the whole patch and although it's largely mechanical code consolidation, it wasn't easy :-) I found another Seamonkey reference and had to wonder what it is for: ;Delete FileX sections [Delete File0] Timing=post download Destination=[COMMON_PROGRAMS]\Mozilla Seamonkey\Mozilla AppRunner.lnk
Attachment #104523 - Flags: review+
There's also a lot of funky stuff going on in config.it: http://lxr.mozilla.org/mozilla/source/xpinstall/packager/windows/config.it#1032 fx "Net2fone.exe" "lala land" land. it's remove those at the same time
So the Net2fone and other shortcut sections in config.ini are commented out. I think Sean was in the habit of commenting out instead of removing historic sections because they had the habit of coming back again sometimes. I can--and will, if that is what we want done--remove those commented sections, though.
Comment on attachment 104523 [details] [diff] [review] Patch 3 >Index: config.it >=================================================================== >-;extract_msg=Uncompressing Seamonkey. Please wait... >+;extract_msg=Uncompressing Mozilla. Please wait... Wouldn't this be uncompressing the install files rather than Mozilla itself? Does this run before or after the download? (I'm fine with the Seamonkey->Mozilla change, just not sure whether it should be "Mozilla installer" or something instead) > [Windows Registry10] > Root Key=HKEY_LOCAL_MACHINE > Key=Software\Mozilla > Name= > Name Value= Do you need to leave this one if there aren't any subkeys? Doesn't hurt since it just gets created later, and maybe even helps if the .jst scripts aren't smart enough to create it before they start adding to it. But since this seems to be a "cleanup" bug I thought I'd mention it. You've got another bug for the equivalent commercial changes? sr=dveditz without or without the above optional suggestions.
Attachment #104523 - Flags: superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verified code fix
Status: RESOLVED → VERIFIED
QA Contact: bugzilla → gbush
Hello Grace. It would be a very good idea to do some checking in the registry to make certain that all the settings are getting made the same as before this change went in. Behavior should not change at all, but how I get that behavior has been modified pretty significantly so you should keep a sharp eye out for anyplace that is doing something differently from before in the registry.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: