iFileUtilityPath->Append(CLEANUP_REGISTRY);
iFileUtilityPath->AppendNative(CLEANUP_REGISTRY);
nsresult GetRegFilePath(nsACString &regFilePath){    nsresult rv;    nsCOMPtr<nsILocalFile> iFileUtilityPath;    //Get the program directory    nsCOMPtr<nsIProperties> directoryService =              do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rv);    if (NS_FAILED(rv))        return nsnull;    if (nsSoftwareUpdate::GetProgramDirectory()) // In the stub installer    {        nsCOMPtr<nsIFile> tmp;        rv = nsSoftwareUpdate::GetProgramDirectory()->Clone(getter_AddRefs(tmp));        if (NS_FAILED(rv) || !tmp)             return nsnull;#if defined (XP_MAC)        tmp->Append(ESSENTIAL_FILES);#endif        iFileUtilityPath = do_QueryInterface(tmp);    }    else    {        rv = directoryService->Get(NS_APP_INSTALL_CLEANUP_DIR,                                  NS_GET_IID(nsIFile),                                  getter_AddRefs(iFileUtilityPath));    }    if (NS_FAILED(rv) || !iFileUtilityPath)         return nsnull;    iFileUtilityPath->Append(CLEANUP_REGISTRY);    //Yes, we know using GetPath is buggy on the Mac.    //When libreg is fixed to accept nsIFiles we'll change this to match.    return iFileUtilityPath->GetNativePath(regFilePath);}