Skip to content

Unable to Replace new .exe with old .exe when i serve my app to windows Service Manager. #140

Answered by dennisvang
ritishbhardwaj asked this question in Q&A
Discussion options

You must be logged in to vote

In any case, keep in mind that tufup "installs" an update by overwriting the content of your app's installation directory.

On windows, this is not possible as long as the app itself is still running, because the executable file is still in use. For more information, see e.g. https://stackoverflow.com/q/196897.

For this reason, when the tufup client "installs" an update, it will first start a separate (independent) process that runs the windows robocopy utility (source), and then exits the running app's process (source). As long as the app process has not exited completely, robocopy will fail, and another attempt is made after a short timeout. This is what you are seeing in the error:

...…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ritishbhardwaj
Comment options

@ritishbhardwaj
Comment options

@dennisvang
Comment options

@ritishbhardwaj
Comment options

@dennisvang
Comment options

Answer selected by ritishbhardwaj
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants