S
S
Sneiksus2019-04-23 08:52:12
WPF
Sneiksus, 2019-04-23 08:52:12

How to remake the auto-updater logic?

So I came up with the following
1. There are two projects in Solution (the updater and the program itself) 2. the
updater starts, checks the version on the server if there is a new version, downloads the archive with the files of the new program
3. unzips it into the folder with the program, launches the main application, deletes the archive and close
This is where the confusion arises. Because on the Internet, examples show how to update only the sas exe-shnik of the program. And I need to copy files from the archive there. And if you just copy with replacement, then the program may remain what was deleted in new version of the program. If you delete the folder and create a new one, then the updater will also be deleted. It only comes to mind to install the updater in a different place and not in the folder with the main program, but this option is not very good for me. Tell me how to solve

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-04-23
@HEKOT

Option 1. Keep a list of files. Anything not on the list is removed.
Option 2: Update all files.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question