DLL not updatingSolved

I'm trying to implement auto update functionality in my application, and WyUpdate seems like a good system for that.. However, now that I started testing, I ran into a problem..

In wyBuild I created an initial v1.07, containing the following files:- myapp.exe (v1.07)- myapp.dll (v1.07)- changelog.txt (v1.07)- AutomaticUpdater.dll

I created an installer (using Inno) for v1.07, in which I included the generated files:- wyUpdate.exe (built for v1.07)- client.wyc (built for v1.07)

When I installed this version, it ran fine of course

I then changed a text in myapp.dll to display "v1.08" and recompiled, just to test the auto update.I copied the freshly compiled .exe, .dll and an updated changelog.txt into a new folder, and created a v1.08 in wyBuild with these new files. I generated an update and uploaded it to the server.

After uploading the update to the server and then running my application again, the auto update code in my application successfully detected a new version and updated to 1.08.. Or so I thought. The dll file still appears to be the old version v1.07, even though the changelog.txt *was* successfully updated. I'm curious as to how this could happen? Maybe the dll is still in use and can't be updated? if so, how do I stop my application from using it, since I'm calling the update from my code it needs to be running, right?

Any info would be greatly appreciated,PV

Hey Peter,

wyUpdate would warn you if the file was in-use or couldn't be updated. First of all, what version of wyUpdate are you using?

Next, make sure you're including *all* files for every version in your wyBuild project. And make sure the files in each of the version tabs match the correct files.

Lastly, if everything check out, rebuild your updates and re-upload them.

Curious.. I'm using 2.6.14.0 which is recent, if not latest. I just got some interesting test results..I removed my current installation for my app, and installed 1.07 again using my Inno installer.I then ran WyUpdate.exe *manually* (rather than using the automaticupdater), and everything worked perfectly! The DLL was correctly updated, etc.. This makes me think I must be doing something wrong in either my code.I put the relevant code here: http://paste.pocoo.org/show/cW4BgTvbjZCE6dva8DwQ(trimmed it a bit to keep to the point):

Another thing I noticed is an AutomaticUpdater.xml file, do I need to include that in my project too? I suspected it wouldn't be relevant..

-Peter

Another thing I noticed is an AutomaticUpdater.xml file, do I need to include that in my project too?

No.

Curious.. I'm using 2.6.14.0 which is recent, if not latest. I just got some interesting test results..I removed my current installation for my app, and installed 1.07 again using my Inno installer.

My guess is that the first time you ran it you had uploaded a test update to your servers, your app had downloaded this test update with incomplete files, and thus an incomplete update was installed.

(The AutomaticUpdater lets wyUpdate do all the work. The AutomaticUpdater is basically just a remote control.)

Retry with the AutomaticUpdater and my guess everything will work.

I ended up rewriting my update code following the example, instead of writing it myself.. For some reason my old code didn't work, and the new code does. Oh well, as long as it works