Using WinSparkle with wxwidgets app and using custom URL

71 views
Skip to first unread message

paulc...@gmail.com

unread,
Jan 3, 2014, 10:58:12 PM1/3/14
to winsp...@googlegroups.com
Hi Vaclav,

Thank you for providing this great library! I plan to integrate it into my wxwidgets-based Lua IDE [1] and have couple of questions for this integration.

1. Since I already link against wxwidgets libs, is it possible to link winsparkle against those instead of having a different copy if the libraries in the dll? I understand the benefits of being able to drop it in without any dependencies, but would prefer to be able to reduce the binary size in my case.
2. Is it possible to customize the URL with additional parameters (not the feed URL, but the actual installation URL)? Some of my users have customized downloads that require specific keys, so the download link needs to include an additional parameter that is available in the configuration file, but not in the feed file. I didn't see this in the API, but it would be great to have some ability to modify the URL right before the request to download the file is made (even if to just add some query parameters).

Paul.

Václav Slavík

unread,
Jan 5, 2014, 8:39:43 AM1/5/14
to winsp...@googlegroups.com
Hi,

On 4 Jan 2014, at 04:58, paulc...@gmail.com wrote:
> 1. Since I already link against wxwidgets libs, is it possible to link winsparkle against those instead of having a different copy if the libraries in the dll?

Yes, there's no reason why it wouldn't work. You'll have to tweak the project settings, obviously, but other that, you shouldn't have any trouble.

> 2. Is it possible to customize the URL with additional parameters (not the feed URL, but the actual installation URL)? Some of my users have customized downloads that require specific keys, so the download link needs to include an additional parameter that is available in the configuration file, but not in the feed file. I didn't see this in the API, but it would be great to have some ability to modify the URL right before the request to download the file is made (even if to just add some query parameters).

This isn't possible currently, nor do I think it makes much sense to be honest. I suggest adding the key parameter to the feed URL (which is customizable) and let the feed script output correct download URLs.

Regards,
Vaclav

paulc...@gmail.com

unread,
Jan 5, 2014, 1:08:29 PM1/5/14
to winsp...@googlegroups.com
Yes, there's no reason why it wouldn't work. You'll have to tweak the project settings, obviously, but other that, you shouldn't have any trouble.

Ok, I'll have to try that. 

This isn't possible currently, nor do I think it makes much sense to be honest. I suggest adding the key parameter to the feed URL (which is customizable) and let the feed script output correct download URLs.

That's a very good point. It should work for my case as well.

One more question. How does the installation process itself work? Sparkle has instructions on how the package itself should be prepared, but I can't find any WinSparkle documentation about that. What happens after the package is downloaded? Do you fork a different process that does the installation? Or is it completely up to the user to close the app, install, and restart?

Paul.

Václav Slavík

unread,
Jan 6, 2014, 10:05:12 AM1/6/14
to winsp...@googlegroups.com

On 5 Jan 2014, at 19:08, paulc...@gmail.com wrote:
> One more question. How does the installation process itself work? Sparkle has instructions on how the package itself should be prepared, but I can't find any WinSparkle documentation about that. What happens after the package is downloaded? Do you fork a different process that does the installation? Or is it completely up to the user to close the app, install, and restart?

Right now, the installer is just launched. There's also a shutdown callback that you can customize and that is called immediately after launching the installer.

Vaclav

Reply all
Reply to author
Forward
0 new messages