rvj wrote: > a) Anyone know what error 240 indicates?
MALFORMED_INSTALL -- see the nsInstall.h file or the docs (link from http://www.mozilla.org/projects/xpinstall/) for these codes. It means you left the init/(perform|cancel)Install transaction open, or didn't have one at all. > b) Am I having the same problem with File object that I am with WinRegistry > ?? > c) is initInstall mandatory or is the mininal installation script below > allowed? Pretty much mandatory. You can't do any actions that will change the users machine unless you're within and init/perform block. Actions within that block are queued and perhaps partially performed (files unpacked to temp files, for example), and only really done during the performInstall() command. That way if along the way you encounter errors you can cancelInstall() to make sure things get cleaned up rather than leave the user hosed with a half-install. Maybe not a big deal if you're installing something new, but if you're upgrading something like Mozilla itself it could be disastrous. -Dan Veditz
