Re: install.js is deprecated??

"Iceman" <[email protected]> 25 Feb 2005 14:22:03 -0800
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization http://groups.google.com
Message-ID <[email protected]>
Hi ,

Sorry if i sound naive here
could you tell me how i can detect a firsttime install?
wouldnt a code segment for an extension be entered everytime you launch
that application from firefox. How do you know this is the first run

thanks!!!!

Justin Wood (Callek) wrote:
> Iceman wrote:
> > XPINstall can be used with install.rdf also?
> >
>
> No (as far as I know), but you can set a pref per your extension on
> first launch to true.
>
> pref("extensions.myGUID.firstRun","true")
>
> and on firstRun reset that to false. Possible extending based on
version
> of your extension if needed.
>
> And when it is run, figure out the Registry stuff you need.
> 
> ~Justin Wood (Callek)