NS_NewLocalFile(aFile, getter_AddRefs(iFile));
NS_NewLocalFile(aFile, PR_TRUE, getter_AddRefs(iFile));
PR_PUBLIC_API(PRInt32) XPI_Install(#ifdef XP_MAC                                    const FSSpec& aFile,#else                                    const char*   aFile,#endif                                    const char*   aArgs,                                     long          aFlags ){    nsresult                rv = NS_ERROR_NULL_POINTER;    nsString                args; args.AssignWithConversion(aArgs);    nsCOMPtr<nsILocalFile>  iFile;    nsFileSpec              file(aFile);    nsFileURL               URL(file);    nsString                URLstr; URLstr.AssignWithConversion(URL.GetURLString());    gInstallStatus = -322; // unique stub error code    #if XP_MAC	nsCOMPtr<nsILocalFileMac> iMacFile;	NS_NewLocalFileWithFSSpec((FSSpec *)&aFile, getter_AddRefs(iMacFile));	iFile = do_QueryInterface(iMacFile);#else	NS_NewLocalFile(aFile, getter_AddRefs(iFile));#endif      if (iFile && gXPI)        rv = gXPI->InstallJar( iFile, URLstr.GetUnicode(), args.GetUnicode(),                                (aFlags | XPI_NO_NEW_THREAD), gListener );    return gInstallStatus;}