Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

1.7.8: Broken shortcut and zero byte exe after an update

Open aytekinturkoglu opened this issue 7 years ago • 4 comments

Setup.exe (first installation) works fine, but mgr.UpdateApp generates broken shortcut for wpf application and zero byte exe after an update. Squirrel: It's like ClickOnce but Works? ;)

.Net 4.6.1 - Tested on Win 10, 7

using (var mgr = new UpdateManager(@"D:\Releases\DesignTime\DesignTime_files\Releases", "DesignTime"))
{
	var updates = await mgr.CheckForUpdate();
	if (updates.ReleasesToApply.Any())
	{
		await mgr.UpdateApp();

		string question = "The application has been updated and needs to restart to apply the changes.\n"
				+ "Do you want to exit the application?";
		if (WinUIMessageBox.Show(question, null, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes) == MessageBoxResult.Yes)
		{
			await UpdateManager.RestartAppWhenExited();
			this.Shutdown();
		}
	}
}

aytekinturkoglu avatar Aug 23 '17 08:08 aytekinturkoglu

Strange. I did not experience such behaviour.

.net 462, Windows 10 CU.

fr4gles avatar Aug 31 '17 17:08 fr4gles

@AytekinTurkoglu did you managed to resolve or track the cause of the problem?

fr4gles avatar Sep 05 '17 21:09 fr4gles

Same issue for me! anyone has update on this issue?

williamyuzhang avatar Feb 05 '18 18:02 williamyuzhang

@AytekinTurkoglu @williamyuzhang is it still an issue with the latest version of Squirrel?

Thieum avatar May 02 '19 03:05 Thieum