Skip to content

Commit

Permalink
Fixing 603197: Package Installs Crash on 10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak committed Jul 9, 2010
1 parent da35ef6 commit 9075d4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SUPackageInstaller.m
Expand Up @@ -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.
Expand Down

0 comments on commit 9075d4a

Please sign in to comment.