From 9075d4a0376b11ac81f5d82698c88d8a668ef2c9 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Thu, 8 Jul 2010 22:37:28 -0700 Subject: [PATCH] Fixing 603197: Package Installs Crash on 10.4 --- SUPackageInstaller.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SUPackageInstaller.m b/SUPackageInstaller.m index df6635ab4..7ce7e16e0 100644 --- a/SUPackageInstaller.m +++ b/SUPackageInstaller.m @@ -41,6 +41,7 @@ + (void)performInstallationWithPath:(NSString *)path host:(SUHost *)host delegat if (floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_4) { // 10.4 uses Installer.app because the "open" command in 10.4 doesn't support -W and -n command = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.apple.installer"]; + command = [command stringByAppendingString:@"/Contents/MacOS/Installer"]; args = [NSArray arrayWithObjects:path, nil]; } else { // 10.5 and later. Run installer using the "open" command to ensure it is launched in front of current application.