Browse files

No longer hardcoding the Installer tool's relative executable path fo…

…r Tiger.
  • Loading branch information...
1 parent 9075d4a commit a5c8e0b1e29f7e23993a306e8d80d937b7fb67e6 @andymatuschak andymatuschak committed Jul 27, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 SUPackageInstaller.m
View
3 SUPackageInstaller.m
@@ -40,8 +40,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"];
+ 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.

0 comments on commit a5c8e0b

Please sign in to comment.