PDA

View Full Version : How do I create setup with Auto Updater



testuser
08-25-2020, 02:22 AM
Hi,

I wanted to create my product which will look for new updates and then download them and install them. I was trying same with SB10 and I am unable to do so. What I have done is create a product with version 1.0.0 with Enable web update and install web update client, and now running WUPDATE.EXE to check how it works. I have given as shared drives IP address as host address. am I doing wrong?
Is Download File Function only work with http or https? what if i want to use with shared drive? or on my machine only for testing??or ftp? how to use it?
All in one I want to achieve Auto updater application, if my new version is on some shared drive or web site then what I need to do?
I am not much detailed aware about auto updater in SB so it will helpful if you help me with the process.

Thanks in advance!

linder
08-25-2020, 05:17 AM
Hello,

WUPDATE.EXE (and WUCKECK.EXE) make use of a HTTP server.

Download File functions only work with HTTP or HTTPS. To copy from a shared drive, you can use "Copy File(s)..."

Does this help?

Friedrich

testuser
08-25-2020, 06:16 AM
Hello,

I am checking WUPDATE_SSL.EXE and for testing I have kept ini file at dropbox now I am getting "Cannot download server manifest file.Network Communication Error: 509000004", even I have tried #pragma HTTP_DISABLE_SNI = "1" in product and WUPDATE_SSL.sbp as well.

below is the ini file
[WUPDATE]
LOCAL_APP=CheckWebUpdate1.0
LOCAL_VERSION=1.0.0
LOCAL_CHECK=1
LOCAL_LAST=0
HOST_ADDRESS=www.dropbox.com
HOST_PORT=80
HOST_DIRECTORY=qas
HOST_INI=qasmanifest
HOST_USERNAME=dropboxusername
HOST_PASSWORD=dropboxpassword

linder
08-25-2020, 07:08 AM
Hello,

Port 80 is not a SSL port. Please use the correct port (e.g. 443) for your SSL enabled server. Is your dropbox.com a SSL enabled server?

Friedrich

testuser
08-25-2020, 11:24 PM
Hello,

I guess yes, dropbox.com is SSL enabled as it uses https. I tried with 443 port, when I execute WUPDATE_SSL.EXE and click on next nothing happens, WUPDATE_SSL window gets closed. However empty qasmanifest file gets created/downloaded, at server location file does have contents. I tried to debug script for WUPDATE_SSL ,then I got below error for Download File function(line no 252).

Even normally I tried to download the ini file from other sbp project using Download File function, getting same below error.


---------------------------
Web Update Client
---------------------------
GPF detected! The installer will shut down now.
---------------------------
OK
---------------------------

linder
08-26-2020, 06:07 AM
Hello,

can you download the manifest with your browser? IMO, your configuration is incorrect. The SetupBuilder SSL feature is used on quite a few million apps and is working as expected.

If possible, post the link to your manifest and I will develop a demo download script for you.

Friedrich

testuser
08-26-2020, 06:49 AM
Hello,

It would be really great if you help us with demo application. Please find attachment for the files in my folder, there are two files 1) INI/manifest file-qasmanifest 2) 2.0 exe file-CheckWebUpdate2.0.exe. My 1.0 and 2.0 test products is just an c# console application.
I have created shareable link for both of them and folder as well:
qas folder-> https://www.dropbox.com/sh/xhrso8iu6onj94g/AADiMHWtrbQRUuqSaTkmoDR5a?dl=0
manifest->https://www.dropbox.com/s/bnh8mbjm7n46ien/qasmanifest?dl=0
2.0 exe->https://www.dropbox.com/s/q7ij0s2eptdav11/CheckWebUpdate2.0.exe?dl=0

please let me know if you need anything else.

Thanks!



5005

linder
08-26-2020, 07:27 AM
Hello,

when I click your link to your manifest then it displays all kind of dialogs and asks me to login. So IMO, this is not a direct link to the file and some kind of redirection is taking place.

It should look like similar to this:

https://www.setupbuilder.com/test.ini

Friedrich

testuser
08-26-2020, 11:54 PM
Thank you very much Friedrich !!


The issue was with the ini file, its working now.

linder
08-27-2020, 01:56 AM
Perfect! Thanks so much for the update.

Friedrich