Skip to content

1.7.8: Broken shortcut and zero byte exe after an update #1135

Open
@aytekinturkoglu

Description

@aytekinturkoglu

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();
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:old-versionIssues that target a very old version of the library, and should be retested if possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions