Get state from WinSparkle

36 views
Skip to first unread message

micha...@gmail.com

unread,
Jan 28, 2014, 1:37:53 PM1/28/14
to winsp...@googlegroups.com
Hi,

is there a way to get the state of WinSparkle from the host?
For example:
1. The host starts the update-process
2. The host will close -> Now I would determine, whether a update-process is running to display a user-hint to offer the user to cancel the close

Thanks.
Regards Michael

Václav Slavík

unread,
Jan 29, 2014, 11:54:55 AM1/29/14
to winsp...@googlegroups.com
Hi.

On 28 Jan 2014, at 19:37, micha...@gmail.com wrote:
> is there a way to get the state of WinSparkle from the host?

No, not currently. PRs are always welcome.

> For example:
> 1. The host starts the update-process

What for?

> 2. The host will close -> Now I would determine, whether a update-process is running to display a user-hint to offer the user to cancel the close

If WinSparkle is downloading, it shows UI, so the user is well aware of it. Cancelling the update process by terminating the app is harmless, so I’d say it’s actually better not to do what you describe here.

Regards,
Vaclav

micha...@gmail.com

unread,
Jan 29, 2014, 12:21:38 PM1/29/14
to winsp...@googlegroups.com
Hi,


> If WinSparkle is downloading, it shows UI, so the user is well aware of it. Cancelling the update process by terminating the app is harmless, so I’d say it’s actually better not to do what you describe here.

Yes, that's right, it shows UI, but the UI can go to background and with big downloads and/or small bandwidth the user might not remember, there is a download in background.
At this point another question:
Meens "harmless", an interrupted download will continue at the next start of the host at the point the download was cancelled? (Example: Total DL size is 20 MB, the user cancel the DL at 11 MB -> Will the download continue at 0 MB or 11 MB?)

Thanks for your advice.

Regards
Michael

Václav Slavík

unread,
Jan 29, 2014, 1:15:59 PM1/29/14
to winsp...@googlegroups.com

On 29 Jan 2014, at 18:21, micha...@gmail.com wrote:
Meens "harmless", an interrupted download will continue at the next start of the host at the point the download was cancelled?

I don’t know — WinINet API is used and it does perform some transparent caching. It’s possible and I _think_ I noticed such behavior in testing, but I’m not 100% sure. Try it, you’ll see.

Vaclav

Reply all
Reply to author
Forward
0 new messages