REGERR DeleteFileNowOrSchedule(nsFileSpec& filename)
REGERR DeleteFileNowOrSchedule(const nsFileSpec& filename)
REGERR DeleteFileNowOrSchedule(nsFileSpec& filename){    REGERR result = 0;        filename.Delete(PR_FALSE);        if (filename.Exists())    {        RKEY newkey;        HREG reg;        if ( REGERR_OK == NR_RegOpen("", &reg) )         {            if (REGERR_OK == NR_RegAddKey( reg, ROOTKEY_PRIVATE, REG_DELETE_LIST_KEY, &newkey) )            {                // FIX should be using nsPersistentFileDescriptor!!!                result = NR_RegSetEntry( reg, newkey, (char*)(const char*)filename.GetNativePathCString(), REGTYPE_ENTRY_FILE, nsnull, 0);                if (result == REGERR_OK)                    result = nsInstall::REBOOT_NEEDED;            }            NR_RegClose(reg);        }    }    return result;}