Closed Bug 454026 Opened 16 years ago Closed 16 years ago

Updates directory not removed on install on Vista

Categories

(Firefox :: Installer, defect)

1.9.0 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

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

Details

Attachments

(1 file, 2 obsolete files)

When Thunderbird is installed under program files app update creates the updates directory under %LOCALAPPDATA%\Thunderbird\<install dir name>\. We have code for removing this directory on install and uninstall but for some as of yet unknown reason the directory is not removed when installing... it is removed during uninstall. Also, this works with Firefox so I am filing under Thunderbird's Installer component vs. Toolkit's NSIS Installer component. I'll take a look at what's going on.

btw: the removal of this directory is a good thing to do in case an app update is downloaded / not applied and the user installs a different version of the app app update will try to update the newly installed version.
This could also affect other apps so moving over to NSIS Installer
Component: Installer → NSIS Installer
Product: Thunderbird → Toolkit
QA Contact: installer → installer
Target Milestone: --- → mozilla1.9.1b1
Version: unspecified → 1.9.0 Branch
Comment on attachment 337261 [details] [diff] [review]
patch rev1 - simplify the CleanUpdatesDir macro

Hey Jim, can I get you to take a look at this. It is much simpler to use the length of the $PROGRAMFILES etc. to figure out if $INSTDIR is under $PROGRAMFILES instead of looping through the individual characters.
Attachment #337261 - Flags: review?(jmathies)
Attachment #337261 - Attachment is obsolete: true
Attachment #337261 - Flags: review?(jmathies)
Comment on attachment 337261 [details] [diff] [review]
patch rev1 - simplify the CleanUpdatesDir macro

I'm going to add this simplification to the CleanVirtualStore macro
Forgot to add the additional pop's for CleanVirtualStore
Attachment #337328 - Attachment is obsolete: true
Attachment #337331 - Flags: review?(jmathies)
Attachment #337328 - Flags: review?(jmathies)
minor not in the comments - other than that, don't see any issues.

+ * $R6 = length of the long path to $PROGRAMFILES
+ * $R6 = length of the long path to $INSTDIR
Attachment #337331 - Flags: review?(jmathies) → review+
Pushed to mozilla-central

http://hg.mozilla.org/mozilla-central/rev/dd9e757b2e96b028cb52ae6af8a744192693829f
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
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: