Sparkle icon indicating copy to clipboard operation
Sparkle copied to clipboard

Sparkle re-launch is launching part of old application from trash

Open rohanp-91 opened this issue 4 years ago • 3 comments

Hello,

I have a .NET application that uses Sparkle to do silent updates in the background. I am using the following update delegate method, in the following way, to trigger a re-launch for the app:

UpdaterWillRelaunchAppication(SUUpdater updater) {
                    Process process = new Process
                    {
                        StartInfo = new ProcessStartInfo(Assembly.GetEntryAssembly().Location)
                    };
                    process.Start()
}

This results in some of the app references being loaded from the old application from /Users/<username/.Trash folder. Is there a way that I can make sure that all references are loaded from the updated app version?

Will the delegate method shouldPostponeRelaunchForUpdate be of any use in this case? Thanks!

rohanp-91 avatar Jul 07 '20 17:07 rohanp-91

Sparkle stopped putting old apps in trash years ago. Are you sure you're using recent Sparkle version?

kornelski avatar Jul 07 '20 19:07 kornelski

We are using Sparkle 1.14.1.

rohanp-91 avatar Jul 08 '20 00:07 rohanp-91

So this bug is probably already fixed. Please try the current version.

kornelski avatar Jul 08 '20 01:07 kornelski