Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
42 lines (26 loc) · 1.66 KB

File metadata and controls

42 lines (26 loc) · 1.66 KB
Copy raw file
Download raw file
Outline
Edit and raw actions
docs / using / debugging-updates.md

Debugging Updates

The following tips will help you to debug the update process in your application.

Update.exe not found?

Executing MyApp from Visual Studio will execute the update process and you will get the following exception from the UpdateManager:

Update.exe not found, not a Squirrel-installed app?

The UpdateManager is expecting to find the Update.exe application installed one directory up from the EXE (e.g., the \bin directory for default Visual Studio projects).

To resolve this, you can simply place a file named Update.exe or you can copy the Squirrel.exe from the MyApp\packages\squirrel.windows.1.2.2.tools directory and rename it Update.exe (this is the actual Update.exe packaged inside Setup.exe).

Executing MyApp from Visual Studio will now cause it to complete the update process and your \bin directory will resemble the %LocalAppData\MyApp% install directory:

Tip: If you want to ensure that the Update.exe is always available in your output directory, you can add the Update.exe file to the Visual Studio project and set its Properties > Copy To Output Directory to 'Copy if newer'.

Catching Update Exceptions

You can catch thrown exceptions and log the results.

using (var mgr = new UpdateManager("C:\\Projects\\MyApp\\Releases"))
{
    await mgr.UpdateApp();
}

Alternatively, set up Splat Logging, see here for an example.


Return: Table of Contents
Morty Proxy This is a proxified and sanitized view of the page, visit original site.