Hi Chris,

thanks for your reply.

I get how to manage the user.js (for me the 'Application')

Now i Just need a Javascript able to detect whether GM is installed or
not.

Your solution is good, but it's FF driven.
Chrome doesn't need any plug-in and any plug-in control, so it' ok.
IE is an open issue, but I am not sure to support it.
Finally I have to check Safari.











On Jul 5, 1:18 pm, "LWChris@LyricWiki" <[email protected]> wrote:
> Am 05.07.2011 11:11, schrieb Dario:
>
>
>
>
>
>
>
>
>
> > Hi there,
>
> > I'm quite new to GM and I am implementing an application for the
> > company where I'm employed.
>
> > Having different users, I'd like to offer the smoothest way to Install
> > GM and our application, to do this I need two scripts:
>
> > 1. A code able to check whether GM is installed
>
> > 2. A code able to check whether our application is installed (only
> > when GM is installed)
>
> > Do you think it could be feasible?
>
> > Thanks in advance,
> > Dario
>
> Hi,
>
> Since you mentioned "application" and "script", I guess you're not
> confusing userscripts and applications and really mean an _application_
> written in C++, VB or similar languages to check that, and not something
> in JavaScript? In this case, it might be easiest to simply check whether
> for 1) a file or a folder "{e4a8a97b-f2ed-450b-b12d-ee082ba24781}" in
> the profile's extension-folder exists and for 2) the userscript folder
> "gm_script" and the script's container-folder in "gm_scripts" itself exists.
>
> If GM is not installed, you can offer an "installer" that calls the
> firefox.exe with the xpi-file from AMO to install the add-on.
>
> If GM is installed but the script is not, you offer an "installer" and
> get a copy of the userscript from the server and "inject" it into
> Greasemonkey (copy the script folder and add the XML node to the
> config.xml that holds the information on which scripts are installed),
> if you dare to ;)
>
> I think this is quite doable :)
>
> Some tips: If the language you're programming in does implement
> retrieving the profile folder's name by "*.default", look the name up in
> the profiles.ini, located at
> "%APPDATA%/Roaming/Mozilla/Firefox/profiles.ini". Since the default
> profile is always installed first, it should be Profile0.Path within the
> inifile.
>
> Good luck,
> Chris

-- 
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