No longer hardcoding the Installer tool's relative executable path for Tiger.

This commit is contained in:
Andy Matuschak committed 2010-07-27 18:35:04 -07:00
1 parent 9075d4a037
commit a5c8e0b1e2
1 file changed
+1 -2
+1 -2
View File
@@ -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.