[GH-ISSUE #960] Download Error if an Installer exists #2766

Open
opened 2026-03-01 19:02:21 +03:00 by kerem · 0 comments
Owner

Originally created by @SEWeiTung on GitHub (Aug 1, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/960

Reproduction:

  1. Change your assembly of your program of ScreenToGif (e.g: change from 2.33.1 to 2.31).
  2. Execute this file first, you will get a tip to update.
  3. Download the installer and upgrade your file to the latest (2.33.1).
  4. Rebuild the project again (redo the step 1).
  5. Redo the step 2.
  6. When to this step, you will find when you click the download button on the download UI, an error happens; however when you cancel it and re-open it, you can download and install again.

Issue Reason:

In DownloadDialog.cs, there's a code with which we execute download logic:
github.com/NickeManarin/ScreenToGif@c8abcbef0b/ScreenToGif/Windows/Other/DownloadDialog.xaml.cs (L209)

It will call the codes, where there's a snippet of codes:
github.com/NickeManarin/ScreenToGif@c8abcbef0b/ScreenToGif/Model/ApplicationViewModel.cs (L1064)

Generally speaking, we don't allow a duplicated installer here (as a minor issue), however, this seems strange for this senario. I tend to have two solutions:

a. Just return true (directly install the existing installer).
b. Remove all the installer there ,no matter whether it gets right or not.

If @NickeManarin is sure this can be fixed (maybe a bug or something else?), please tell me and I'll get a quick fix for you ;)

Originally created by @SEWeiTung on GitHub (Aug 1, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/960 Reproduction: 1. Change your assembly of your program of ScreenToGif (e.g: change from 2.33.1 to 2.31). 2. Execute this file first, you will get a tip to update. 3. Download the installer and upgrade your file to the latest (2.33.1). 4. Rebuild the project again (redo the step 1). 5. Redo the step 2. 6. When to this step, you will find when you click the download button on the download UI, an error happens; however when you cancel it and re-open it, you can download and install again. Issue Reason: In DownloadDialog.cs, there's a code with which we execute download logic: https://github.com/NickeManarin/ScreenToGif/blob/c8abcbef0b3795faa33686199c640cbb28cacc9c/ScreenToGif/Windows/Other/DownloadDialog.xaml.cs#L209 It will call the codes, where there's a snippet of codes: https://github.com/NickeManarin/ScreenToGif/blob/c8abcbef0b3795faa33686199c640cbb28cacc9c/ScreenToGif/Model/ApplicationViewModel.cs#L1064 Generally speaking, we don't allow a duplicated installer here (as a minor issue), however, this seems strange for this senario. I tend to have two solutions: **a. Just return true (directly install the existing installer). b. Remove all the installer there ,no matter whether it gets right or not.** If @NickeManarin is sure this can be fixed (maybe a bug or something else?), please tell me and I'll get a quick fix for you ;)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2766
No description provided.