From d536eb2da947b93b6e921765257fc151811d6275 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 2 Dec 2011 16:59:37 +0000 Subject: [PATCH] Mac installer: revert to using a wrapper application around installer package svn path=/trunk/boinc/; revision=24725 --- mac_installer/Installer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mac_installer/Installer.cpp b/mac_installer/Installer.cpp index 5ee429a4e0..25da54b8b8 100755 --- a/mac_installer/Installer.cpp +++ b/mac_installer/Installer.cpp @@ -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);