From 69c725aecd91f2e7bbcaf2c455b43375fa840378 Mon Sep 17 00:00:00 2001 From: Markus Gerards Date: Fri, 18 Aug 2023 10:17:08 +0200 Subject: [PATCH] Add infos regarding applicationExecutablePath --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index c7bf92cb..d72d51a0 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,11 @@ ReleaseCandidate: `rc` In version 4 any type of pre-release descriptor, as well as build metadata, will be available. It will fulfill the complete semantic versioning specification and have an abstract version system. +### Specifying an `applicationExecutablePath` + +Under some circumstances the UpdateManager is not able to obtain the correct executable path. While the update might work during a debug build, an update with an actual release build will lead to errors while unpacking and copying the files into your application path. +To help nUpdate to find the correct program path the UpdateManager accepts `applicationExectuablePath` as a parameter. With recent .NET versions an executable path is provided by `AppContext.BaseDirectory`. Please note that the UpdateManager needs also the name of your application, so as an example the parameter could be `applicationExecutablePath: AppContext.BaseDirectory + "MyApp.exe"`. + ## Supported by