Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
RE: Help with code please
Check the registry for the script and then if it's there, turn your script off, disable it in the registry for when WLM is restarted and then display an error telling the user
Well... take for instance that they have another script installed with the same name. You could always maybe read the script file aswell and use regexp to see if it is the actual script.
Aden, why are you worrying so much about your script?
This post was edited on 09-22-2007 at 11:06 AM by davidpolitis.
Posts: 1622 Reputation: 50
36 / /
Joined: Jan 2006
RE: Help with code please
The best solution is check the registry to see if Special Small Characters exists and is activated on start. If it is then just bring up a warning telling the user that there is a possible conflict between the two scripts and they need to uninstall one of them. That way it is not hard to code and they get to make the decision between the two.
Important note: you can check if another script is currently installed but you must not disable ore touch the preferences of another script. If you do, your script won't be allowed in the public database.