Mohamed, Finnur, PhistucK, thank you for your answers!

Yes, it is for Uninstaller\Repair Installation\Reinstallation program
to check or not check a checkbox.

PhistucK, I didn't understand what you suggest... My Chrome extension
is NPAPI extension. It seems that uninstalling extension (clicking
'Uninstall' button) doesn't kill dll immediately and it can do some
kind of shutdown instructions indeed (although I'm not 100% sure). But
how do I know that user has clicked 'Uninstall' ? Do you mean that I
have to write some javascript listener for user's click on 'Uninstall'
button and that will trigger some uninstallation code in my dll ? Or
do you mean something different?

By the way, I have found “install and un-install hooks” discussion and
issue http://code.google.com/p/chromium/issues/detail?id=19383.
I'm new to this issue tracking system... what does “-Mstone-4 -Channel-
Beta” mean?  Looks like it will be fixed in Chrome 4?

On 4 янв, 11:58, PhistucK <[email protected]> wrote:
> As far as I understand, Alexey has an installer for a multi browser
> extension\add on.
> He wants the Uninstaller\Repair Installation\Reinstallation program to check
> or not check a check box when a certain edition of the extension (for
> example, the Chrome edition) is not installed (whether it was never
> installed in the first place, or manually uninstalled).
>
> So, no, there is no way to do that, but there was a discussion about
> something like that.
> If you add an NPAPI plugin that will work in the background (there will be
> call to it in the background page, for example, assuming that works), will
> uninstalling the extension kill it immediately, or let it execute some kind
> of shutdown instructions?
> If so, perhaps that is the way to go. It would require some C++
> knowledge\programming and messing around and an approval from the team when
> you upload to the gallery, but if that check box means a lot to you - I am
> sure you can handle it. ;)
>
> ☆PhistucK
>
> On Mon, Jan 4, 2010 at 01:43, Finnur Thorarinsson <[email protected]>wrote:
>
>
>
> > I think Alexey is asking for an event that gets triggered when the user
> > manually installs an extension that was installed by Alexey's installer. The
> > event would trigger the Alexey's uninstaller to do some housekeeping.
>
> > However, we don't have such an event to my knowledge.
>
> > From the outside, I can only think of two indicators of an extension being
> > uninstalled. I'm not at my desk, so this is from memory:
>
> > 1) The user's preferences file in the Chrome profile will either remove the
> > entry for the extension or mark it as uninstalled
> > 2) The extension directory (see Mohamed's email) will get removed (don't
> > remember if this happens immediately)
>
> > Both of these are easy to test.
>
> > The question in my mind is why you'd need to do this? Extensions don't need
> > to write to the Windows Installer database as a part of their installation
> > and as such don't need to cleanup after themselves.
>
> > Is this so that a manual uninstall removes the extension Add/Remove
> > Programs entry (that you added during install) -- or is there another
> > purpose?
>
> > On Sun, Jan 3, 2010 at 14:40, Mohamed Mansour <[email protected]> wrote:
>
> >> Perhaps you can inform the user that they must close chrome browser before
> >> uninstalling. And your uninstall script will actually goto the users "User
> >> Data" directory and delete the extension folder which is just your 
> >> extension
> >> id.
>
> >> C:\Users\[user]\AppData\Local\Google\Chrome\User
> >> Data\Default\Extensions\[extension-id]
>
> >> -Mohamed Mansour
>
> >> On Mon, Dec 28, 2009 at 7:52 AM, Aris <[email protected]>wrote:
>
> >>> Hello, All!
> >>> We now distribute bunch of extensions for popular browsers, including
> >>> Chrome, as part of Windows Installer package. A question that worries
> >>> me is about our Chrome  extension manual uninstalling - how can
> >>> Windows installer be notified of uninstalling Chrome exetnsion
> >>> manually from  [Wrench menu] > Extensions?
>
> >>> Details:
> >>> What we need is a call to msiexec.exe with some parameters (stored in
> >>> Windows registry upon installing; something like  “msiexec /i
> >>> [ProductCode] REMOVE=ChromePlugin /qb”) when user clicks button
> >>> “Uninstall” on the chrome://extensions/ page – this removes Chrome
> >>> extension entries from Windows Installer database.
>
> >>> Google Chrome version: 4.0.266.0
> >>> Operating System: Windows XP Professional
>
> >>> Thanks in advance!
>
> >>> --
>
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Chromium-extensions" group.
> >>> To post to this group, send email to
> >>> [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected]<chromium-extensions%2Bunsu
> >>>  [email protected]>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/chromium-extensions?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Chromium-extensions" group.
> >> To post to this group, send email to [email protected]
> >> .
> >> To unsubscribe from this group, send email to
> >> [email protected]<chromium-extensions%2Bunsu
> >>  [email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/chromium-extensions?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<chromium-extensions%2Bunsu 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/chromium-extensions?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to