OSErr 	err = noErr; FSSpec	tgtDirSpec, xpiStubDirSpec, xpiSpec;
OSErr 				err = noErr; FSSpec				tgtDirSpec, xpiStubDirSpec, xpiSpec; XPI_InitProc		xpi_initProc; XPI_InstallProc		xpi_installProc; XPI_ExitProc		xpi_exitProc; CFragConnectionID	connID; nsresult 			rv = NS_OK; StringPtr			pcurrArchive; int					i, compsDone = 0, instChoice = gControls->opt->instChoice-1;; Boolean				isCurrXPI = false;
RunAllXPIs(short vRefNum, long dirID){	OSErr 	err = noErr;	FSSpec	tgtDirSpec, xpiStubDirSpec, xpiSpec;	err = FSMakeFSSpec(vRefNum, dirID, 0, &xpiStubDirSpec); /* temp dir */	err = FSMakeFSSpec(gControls->opt->vRefNum, gControls->opt->dirID, 0, &tgtDirSpec);	/* program dir */		// TO DO	//		enumerate through all .xpi's	err = FSMakeFSSpec(vRefNum, dirID, "\pmozilla.jar", &xpiSpec); // XXX change	if (err==noErr)		err =  RunXPI(xpiSpec, xpiStubDirSpec, tgtDirSpec);	else		ErrorHandler(); 			return err;}