Michael Schlenker wrote: > The problem i have with XPInstall is, that i do not know how to look for > a local Tcl installation from javascript. > > To find a local installation i would try to execute some files on the > local system: > tclsh, wish, tclkit, ... > > File.execute() from XPInstall would do this only after i call > performInstall(), which is to late for deciding what to do. > > So, is there a way to execute some tests (like unix configure does) > before i call performInstall()?
You can have multiple initInstall()...performInstall() blocks in a single install -- use one to run your checker and then optionally a second to do the real install. But I'm not sure how you'd get any results back from the first executable, the best I can come up with is to drop a file somewhere and use its existance as a flag (but you can't even read its contents). (On windows you could use windows registry settings to pass information.) Your best bet might be just to do everything from your executable and have it do the real install. XPInstall could drop the files somewhere for you and pass the plugin directory name to your program, and the executable could delete the unwanted files. -Dan Veditz _______________________________________________ Mozilla-xpinstall mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpinstall
