Hello,

The users of your script won't notice this because they will install it from
the same webspace.

So it won't be a problem.

Booboo
On 2011.01.05. 23:34, "ericc" <[email protected]> wrote:
> Hello all
>
> In the header of my script, I have put the following code, to auto-
> update it :
> GM_xmlhttpRequest({
> method:'GET', url: fgsServer + 'gmVersion.php',
> onload: function(fge) {
> if (fge.status == '200' && fge.responseText != version &&
> fge.responseText.length < 20) {
> nouvelle_version = fge.responseText;
> if (confirm("La version "+nouvelle_version+" du script
> GreaseMonkey FGStat est disponible.\n\n Mettre à jour maintenant ?\n
> \n")) {
> window.location = fgsServer +
> 'gm_fg_stats.user.js';
> }
> }
> }
> });
>
> The problem is that the first update, GM install the script a second
> time instead of updated it !!!
> But the old script is running always first.
> I have the same problem on Windows(XP) and on Linux(Debian/Testing)
>
> However, if I manually uninstall the old version, it's ok and at the
> next update everything run as expected.
>
> I think that I have found a beginning of an explanation because when
> the new version is installed, the parameters used by the script and
> saved in the FF about:config with GM_setValue are empty.
> When I go in about:config , I see :
> greasemonkey.scriptvals./GM_FG_Stats.login
> and
> greasemonkey.scriptvals.ericc.elive.olv.be/GM_FG_Stats.login
>
> seems that GM is adding the domain name to the key
>
> How can I avoid the double installation for the first update ?
>
> ericc
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected]<greasemonkey-users%[email protected]>
.
> For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" 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/greasemonkey-users?hl=en.

Reply via email to