Sending wyUpdate commands from a new version

My last question was regarding changing the base directory.

The answer was that I could run wyUpdate.exe with the -basedir option to set the base directory to the one above it.

My question now is how does one do that from a new update?Here is an example situation:User A downloads version 1.0. This has an automatic updater control which calls wyupdate.exe with no flags.

User B downloads version 1.1. This version requires going back one directory and adding File 'X' there. This version passes in command line flags to the AutomaticUpdater.

In order to have a successful update from 1.0 to 1.1, file 'X' should appear in wyUpdate.exe's parent directory.

How might I solve this issue? I would like for the user to not have to open a command prompt and run WyUpdate.exe -basedir="..\"

The only way to solve this is to split off your updates. That is, have one last update at your current download location (let's call it http://example.com/updates/%file% ) where the only change is making your app call wyUpdate with the new basedir and including a new client.wyc file with a new download ite.

The new download site will be http://example.com/new-updates/%file% . This way your old users get updated to an intermediate version and from there can get update to the latest version. And from now on you'll be uploading your updates to "new-updates" on your server (while leaving the old "updates" folder as a way for your old vustomers to step into the latest release "branch").

Does that make sense?

Hmm, when I do this I get: "The downloaded file "stuff.1.1.to.1.2.wyu" failed the Adler32 validation" - (the project name is 'stuff').

What I have in my wyBuild project are these files:1.0:1.0.txtclient.wyc - downloads from my.updateplace.com/testupdate/%file%

1.1:1.1.txtclient.wyc -also my.updateplace.com/testupdate/%file%

1.2:1.2.txtclient.wyc - my.updateplace.com/testupdate2/%file% <--- This is still uploaded to the original "testupdate" server

1.3:someFolder/1.3.txtsomeFolder/client.wyc - my.updateplace.com/testupdate2/%file%something.txt

Server side I have:testupdate:stuff.1.0.to.1.2.wyustuff.1.1.to.1.2.wyustuff.all.to.1.2.wyuwyserver.wys

testupdate2:stuff.1.0.to.1.2.wyustuff.1.0.to.1.3.wyustuff.1.1.to.1.2.wyustuff.1.1.to.1.3.wyustuff.all.to.1.2.wyustuff.all.to.1.3.wyuwyserver.wys

Note: I have built a custom wyupdate.exe which updates itself from another location - this appears to work fine.Also note: This is all happening within the same wybuild project.

Any help on figuring out how to fix this issue would be much appreciated.

Ok, here's what I was doing wrong.

When building 1.2 (the update that'll change the download site), I was also changing wyserver.wys's download site.

What I needed to do was build the client.wyc file for 1.2 after changing the download site; add the client.wyc file to 1.2's changes; then switch the download site back to the old one; build the updates up to 1.2; then upload everything to the old download site.

The next part is what I was doing before- change the download site to the new place (the one 1.2's client.wyc is pointing to), build wyupdate to get 1.3's client.wyc file; build updates from 1.2 to 1.3; and upload to the new place.

Great, I'm glad you figured it out.

Yep, thanks for the help and the patience