I just built another update. This time I tried updating a new file, file3.dll. After the update ran, file2.dll was deleted and Windows installer installed the original version, 3 versions old.
Hi. I downloaded wyUpdate yesterday and ran into trouble distributing a product. I made a few updates just to test the process. These updates have only updated 2 files, file1.exe and file2.dll. File1.exe is the program that wyUpdate is ran from. File2.dll is used inside File1.exe. The first update (updated file2.dll) ran flawlessly. The second update (updated both files) File2.dll was deleted; when I ran the program again the Windows installer ran replacing the deleted file. The fourth update (update to file1.exe) I watched the programs directory. There was no file1.exe but a file1 new.exe; the Windows installer ran again to replace file1.exe.
I hope this explanation makes since. Is there a problem with wyUpdate or my Windows installer?
Windows installer is the 'Visual Studio Installer' project.
I just built another update. This time I tried updating a new file, file3.dll. After the update ran, file2.dll was deleted and Windows installer installed the original version, 3 versions old.
Make sure you follow the step-by-step walkthrough. In partciular make sure you follow the steps where it tells you to (a) Include all the files from the version into a separate folder, and (b) copy all (every single one) of these files into wyBuild.
It sounds like you only put the "changed" files in wyBuild. Don't do that. Add *all* files to wyBuild and let wyBuild decide what to add, what to patch, and what to delete.
Does that make sense?
Wyatt, thank you for the quick response. That does make sense. I included every file in an update. When I update from the application there is an error installing the update, "Cannot read that as a ZipFile." This error has repeated multiple times for the process of including all files.
This error has repeated multiple times for the process of including all files.
I'm not quite sure what you mean. Are you getting this when you're installing the update? Or is your app showing this error? Or are you getting this when building the update?
A screenshot would be helpful. Also, copying & pasting the full error would be useful.
This error occurs while checking for an update. I made a couple of update builds that included every file for the program, these updates threw this error. Screenshot: http://s14.postimage.org/dason0l6p/wyupdate_Problem.png
Windows Service TroubleI have encountered an issue this morning with wyUpdate in a service. I followed the instructions to the T for adding wyUpdate to a service. The service is set up to check for updates once every 10 minutes, for testing purposes. The error is: 'wyUpdate exited prematurely: wyUpdate ended before the current update step could be completed.' wyUpdate is set to automatic If I need a new thread for this please let me know.
Tutorial I followed for adding to a service: http://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php
This error occurs while checking for an update. I made a couple of update builds that included every file for the program, these updates threw this error. Screenshot: http://s14.postimage.org/dason0l6p/wyupdate_Problem.png
Make sure you upload the files in "binary mode" to your server. What you're seeing is wyUpdate is downloading the *.wys file and it's corrupt, and thus cannot read it.
Windows Service TroubleI have encountered an issue this morning with wyUpdate in a service. I followed the instructions to the T for adding wyUpdate to a service. The service is set up to check for updates once every 10 minutes, for testing purposes. The error is: 'wyUpdate exited prematurely: wyUpdate ended before the current update step could be completed.' wyUpdate is set to automatic If I need a new thread for this please let me know.
Tutorial I followed for adding to a service: http://wyday.com/wybuild/help/automatic-updates/windows-services-console-apps.php
Did you include wyUpdate.exe with your sevrice (in the same folder? Did you include the client.wyc file? What happens when you double click wyUpdate.exe?