diff --git a/Sparkle/Autoupdate/AppInstaller.m b/Sparkle/Autoupdate/AppInstaller.m index 78f8d591..dd000217 100644 --- a/Sparkle/Autoupdate/AppInstaller.m +++ b/Sparkle/Autoupdate/AppInstaller.m @@ -491,7 +491,7 @@ static const NSTimeInterval SUDisplayProgressTimeDelay = 0.7; __block BOOL shouldLaunchInstallerProgress = YES; NSString *progressToolPath = self.installationData.progressToolPath; - if (progressToolPath != nil && self.shouldShowUI) { + if (progressToolPath != nil && self.shouldShowUI && ![self.installer displaysUserProgress]) { NSURL *progressToolURL = [NSURL fileURLWithPath:progressToolPath]; if (progressToolURL != nil) { NSError *quarantineError = nil; diff --git a/Sparkle/Autoupdate/SUInstallerProtocol.h b/Sparkle/Autoupdate/SUInstallerProtocol.h index a45c2908..3d45490d 100644 --- a/Sparkle/Autoupdate/SUInstallerProtocol.h +++ b/Sparkle/Autoupdate/SUInstallerProtocol.h @@ -26,6 +26,9 @@ // Should be able to be called from non-main thread - (BOOL)performThirdStage:(NSError **)error; +// Indicates whether or not this installer will show the user visible installation progress +- (BOOL)displaysUserProgress; + // Cleans up work done from any of the previous stages. This should be invoked after stage 3 succeeds, // or after any one of the stages fails. // Should be able to be called from non-main thread diff --git a/Sparkle/SUGuidedPackageInstaller.m b/Sparkle/SUGuidedPackageInstaller.m index 99c0c2c8..a96ca956 100644 --- a/Sparkle/SUGuidedPackageInstaller.m +++ b/Sparkle/SUGuidedPackageInstaller.m @@ -169,6 +169,11 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return validInstallation; } +- (BOOL)displaysUserProgress +{ + return NO; +} + - (void)cleanup { } diff --git a/Sparkle/SUPackageInstaller.m b/Sparkle/SUPackageInstaller.m index b177bf17..c7c0dda9 100644 --- a/Sparkle/SUPackageInstaller.m +++ b/Sparkle/SUPackageInstaller.m @@ -72,6 +72,11 @@ static NSString *SUOpenUtilityPath = @"/usr/bin/open"; return YES; } +- (BOOL)displaysUserProgress +{ + return YES; +} + - (void)cleanup { } diff --git a/Sparkle/SUPlainInstaller.m b/Sparkle/SUPlainInstaller.m index f912c886..a2cb6ff7 100644 --- a/Sparkle/SUPlainInstaller.m +++ b/Sparkle/SUPlainInstaller.m @@ -239,6 +239,11 @@ return [self startInstallationToURL:[NSURL fileURLWithPath:self.installationPath] fromUpdateAtURL:[NSURL fileURLWithPath:self.applicationPath] withHost:self.host error:error]; } +- (BOOL)displaysUserProgress +{ + return NO; +} + - (void)cleanup { SUFileManager *fileManager = [self.fileManager fileManagerByPreservingAuthorizationRights];;