From a5c8e0b1e29f7e23993a306e8d80d937b7fb67e6 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Tue, 27 Jul 2010 18:35:04 -0700 Subject: [PATCH] No longer hardcoding the Installer tool's relative executable path for Tiger. --- SUPackageInstaller.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SUPackageInstaller.m b/SUPackageInstaller.m index 7ce7e16e..804ce41d 100644 --- a/SUPackageInstaller.m +++ b/SUPackageInstaller.m @@ -40,8 +40,7 @@ NSString *SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate"; 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"]; + command = [[NSBundle bundleWithIdentifier:@"com.apple.installer"] executablePath]; 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.