Repository navigation
Replies: 1 comment 1 reply
|
I won't be accepting PR for bigger changes right now. I want to create new version without the Winforms dependency, so there can be multiple version like for Winforms, WPF, Avalonia etc . . . This way it can be useful in cross-platform apps and updating services. I may add backup functionality along with the rewrite. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Greetings!
Has anyone created a way to make a backup version of the existing program prior to extracting the update? I spent about 30 minutes with Cursor and did just that. It does a copy from the current location to a sibling folder with the four part version number on the end (which means it probably won't work if your folder already has that). Then it extracts the new contents into the existing folder. Shortcuts should still work since the folder name doesn't change.
Then I had it add a function to revert to a previous version. It created a function to get the list of previous versions as Version[]. The host app will need to do something like this:
It puts a copy of ZipExtractor.exe into the temp folder and launches it so that it can rename the existing folder with the four part version and then rename the specified one back to the folder name without the version. The shortcuts to the program then run the old version. The new version is left there so we can compare to find out what's wrong.
Would this be worth submitting or is it old hat? I could create a fork or a PR.
All reactions