Mac installer: revert to using a wrapper application around installer package

svn path=/trunk/boinc/; revision=24725
This commit is contained in:
Charlie Fenton 2011-12-02 16:59:37 +00:00
parent 94919cd091
commit d536eb2da9
1 changed files with 9 additions and 0 deletions

View File

@ -95,6 +95,10 @@ int main(int argc, char *argv[])
if (p)
*p = '\0';
p = strstr(brand, " Installer.app"); // Strip off trailing " Installer.app"
if (p)
*p = '\0';
err = Gestalt(gestaltSystemVersion, &response);
if (err != noErr)
return err;
@ -116,6 +120,11 @@ int main(int argc, char *argv[])
ExitToShell();
}
// Remove previous installer package receipt so we can run installer again
// "rm -rf /Library/Receipts/GridRepublic.pkg"
sprintf(s, "rm -rf \"/Library/Receipts/%s.pkg\"", brand);
system (s);
strlcat(pkgPath, ".pkg", sizeof(pkgPath));
err = Gestalt(gestaltSystemVersion, &response);