Hi Amin,
instead of using a boolean preference just write your extension's version 
string into the preference. Then on each program start you compare the 
preference's string to your current extensions version to find out about an 
update.
In my extension (checkyesss) I use it to trigger various stuff, but mainly 
showing all new features (and bug fixes, d'oh) added between the old version 
and the newly installed one when the updated extension runs for the first time.
-Thomas

----- Ursprüngliche Mail ----
Von: Amin <[EMAIL PROTECTED]>
An: Mozdev Project Owners List <[email protected]>
Gesendet: Freitag, den 22. Dezember 2006, 13:51:54 Uhr
Betreff: Re: [Project_owners] First time after installing Extension

ok but it doesnt work after update !!! 
i want to works every time user install new version or same version 

On 12/22/06, Brian King <
[EMAIL PROTECTED]> wrote:On 22/12/2006 11:21 (CET), Amin wrote:
> any body know how to run a javascript code only one time after

> installing extesion ,
>
> what i must add to install.rdf ?

Have a default preference, say "extensions.myapp.firstrun", and set it
to true.

Check it every time at startup. If true, execute the code, and if false

do not. Once your code is executed, you can set it to false yourself to
ensure the code is not run on subsequent startup.

--
Brian King
www.mozdev.org - free project hosting for the Mozilla community

_______________________________________________
Project_owners mailing list
[email protected]

http://mozdev.org/mailman/listinfo/project_owners



_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners







        
                
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to