New issue
Advanced search Search tips

Issue 226844 link

Starred by 6 users

Issue metadata

Status: Untriaged
Owner: ----
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug

Sign in to add a comment

Chrome Uninstall/Reinstall with Yandex BrowserManager running causes Setup error

Project Member Reported by, Apr 4 2013

Issue description

tl;dr; this is not something that should affect most users of Chrome, but may be worth fixing. This bug is at first glance not specific to Yandex, but broadly may also happen with other vendors such as AntiVirus programs.

Yandex runs 2 processes, BrowserManager.exe and BrowserManagerShow.exe, abbreviated to BM and BMS respectively. For the issue to repro:
* Chrome needs to be uninstalled and in the uninstall box, the user needs to explicitly check "Delete all User Data"
* Then Chrome needs to be reinstalled without a reboot or logoff or closing BM in between* (*closing BM and waiting 5 minutes causes the BM process to release handles and Chrome can be reinstalled)

The reason this happens: BM and BMS open handles to the "%LocalAppData%\Google\Chrome\User Data\Default" directory with Share R/W/D. If Chrome is then uninstalled and the user tells it to delete all User Data, these files are only marked for deletion, not actually deleted since there is an open handle held by BM/BMS. 

Subsequently, if Chrome is re-installed, it tries to create the "%LocalAppData%\Google\Chrome\User Data\Default" directory and CreateFile gives back an error to the effect of "oops, Delete Pending". So Chrome throws up a "cannot create User Data directory" error dialog.

Potential solutions:
* Perhaps have Chrome create a different directory if "Default" is held. This has the pro of not encountering this issue not just with Yandex, but also with AntiVirus vendors that are known to hold handles. The con may be that (say) "Default1" is now a non-standard location.
* Chrome could rename and then delete the directory during Uninstall. Not sure if this will work but worth a try.
* Specifically handle the "Delete Pending" file error code and ask the user to logoff or restart the machine. Not user friendly, but if this is a rare edge-case, may be worth doing it this way.

Labels: Needs-Feedback
Is this still an issue? If so, is it possible to work with Yandex?

Chrome is at the mercy of the process owning the handles at this point. Seems like BM or BMS should release those handles.

Comment 2 Deleted

I'm not understand what you mean about me starting  this issue how did it

Sign in to add a comment