Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…r Tiger.
  • Loading branch information...
commit a5c8e0b1e29f7e23993a306e8d80d937b7fb67e6 1 parent 9075d4a
@andymatuschak andymatuschak authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.