Instructions?

Is there any better documentation other then the generic demos you have on the site? Both the video and the other help are missing a few key steps evidently because all I get are crashes. At the moment I am very much considering taking you up on that money back offer. I am writing a VB Net application. The automatic updater won't connect(of course, that because your instructions say nothing about telling it where to connect to). Wybuild won't upload the files on my server where they are supposed to go so it crashes when I try to run it.

, edited
Is there any better documentation other then the generic demos you have on the site? Both the video and the other help are missing a few key steps evidently because all I get are crashes. At the moment I am very much considering taking you up on that money back offer.

You're right, our documentation is the weakest part of our product. I apologize, this is unacceptable. We're working to fix this glaring gap.

But in the meantime I'll walk you through the steps necessary to add updating to your app.

I am writing a VB Net application. The automatic updater won't connect(of course, that because your instructions say nothing about telling it where the hell to connect to).

Can you tell me what error you're getting? Have you included both the "wyUpdate.exe" and "client.wyc" files in the base directory of your application?

If you try running wyUpdate.exe alone, do you get an error? If so, can you tell me what it says?

Wybuild won't upload the files on my server where they are supposed to go so it crashes when I try to run it.

Have you tried connecting to your ftp site by clicking the "Connect" button?:

[attachment=0]wybuild.upload.png[/attachment]

After you press connect you should get a list of files and folders on your server. Navigate to the folder where you will be storing your update files. (Double click the folder to enter it, double click the ".." folder to go back).

The exact location varies from server to server. So I can't tell you where exactly it will be on your server.

I recommend storing your update files in a subdirectory like http://yoursite.com/updates/.

After creating the "updates" folder on your server, and going into the "updates" folder in the wyBuild FTP browser and pressing Add site, you'll need to add the site that wyUpdate.exe will look for when checking for updates.

[attachment=1]sites.png[/attachment]

In this case you'll be specifying the http address to get the files. Just use the "%file%" placeholder and wyBuild will automatically replace it with the correct filenames.

Now you're ready to Build wyUpdate, then Build the Updates.

Then upload updates (even if you haven't added any files). When you run wyUpdate.exe it should say you're already up-to-date.

Tell me if this helps. If you need clarification I'll be glad to help. Also, if you want me to walk you through the steps you can call me on the phone (603-841-3604) or via Skype "wyattoday".

I got wybuild working somewhat, it's uploading to the correct location now and it updates. The only problem is that it isn't updating my application.

I built a simple application with a label on it stating the version. I am using an installer package that generates an exe file. That exe file is the file I drag to the program folder in the Files & Folders section right?

I did that then built version 1 and uploaded it to the server then I compiled and installed version 1.1. I added it to version 1.1 in wybuild and uploaded the files. I removed everthing from my pc and re-installed version 1.0 with the 1.0 wyUpdate.exe and client.wyc.

When I ran wyUpdate it told me there was an update and downloaded it but when I launched my program it was still version 1.0. If I run wyUpdate again it tells me my program is up to date.

I check my server and the .1.0.to.1.1.wyu and .all.to.1.1.wyu files are on there.

I got everything working finally. It works great but that setup can be a bear 😉

Still not sure what to do in the closing aborted but everything seems to work fine. Is that to abort closing the program if an update is downloading?

No, ClosingAborted is called when something goes wrong at the last possible minute. But first let me explain what happens when everything goes right:

  1. Your updates are automatically found, downloaded, and extracted.
  2. Your user shuts down your app.
  3. The next time they start your app, the AutomaticUpdater detect that updates are ready to install, it starts wyUpdate and shuts down your app.
  4. wyUpdate installs your app, and restarts your app.

Now let me explain step 3 a little more in depth. I'm going to assume your application opens files of some sort and/or opens a settings file when it starts.

If this is the case, then your code should look like this:

Public Sub New()    InitializeComponent()


    ' only load files, etc. when NOT closing to install an update    If Not automaticUpdater.ClosingForInstall Then        ' load important files, etc.        LoadFilesEtc()    End IfEnd Sub

Where LoadFilesEtc() function should load files, setting, etc. So if you look at the code, it skips this bit when an update is being prepared to be installed (no point in loading files if we're going to exit just a second later).

How ClosingAborted fits into this picture

ClosingAborted is called when something goes wrong in step 3. For instance, your user deletes the cached update files. Your app is started normally (instead of closing to begin installing the update) while the AutomaticUpdater control sorts out the problems.

So if you've skipped the loading of files in the LoadFilesEtc() function above, you need to call it now in the ClosingAborted event function:

Private Sub automaticUpdater_ClosingAborted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles automaticUpdater.ClosingAborted    ' your app was preparing to close    ' however the update wasn't ready so your app is going to show itself    LoadFilesEtc()End Sub

I got wybuild working somewhat, it's uploading to the correct location now and it updates. The only problem is that it isn't updating my application.

I built a simple application with a label on it stating the version. I am using an installer package that generates an exe file. That exe file is the file I drag to the program folder in the Files & Folders section right?

I did that then built version 1 and uploaded it to the server then I compiled and installed version 1.1. I added it to version 1.1 in wybuild and uploaded the files. I removed everthing from my pc and re-installed version 1.0 with the 1.0 wyUpdate.exe and client.wyc.

When I ran wyUpdate it told me there was an update and downloaded it but when I launched my program it was still version 1.0. If I run wyUpdate again it tells me my program is up to date.

I check my server and the .1.0.to.1.1.wyu and .all.to.1.1.wyu files are on there.

I have similar problem.I create app with AutomaicUpdate and menuItem, I create to label at this form with version number.Next, I buid this app, add tho the wyBuild project and generate the patch and wyUpdate.

Then i make copy app to folder 1.0 and deploy in this folder files "wyUpdate.exe" and "client.wyc".

Next I make change at my app by change label Text property to new version number, I create new wersion in wyBuild and upload it to server.

wyUpdate tells me that new version is avilable, download it and install.The problem is, thet when I start the app I still have old label text.Where is my mistake?

OK. I found the solution in the followed topic:https://wyday.com/forum/t/90/patch-failed-to-apply/

I think, wyBuild should makes local copy of current version added to project to local folder in project location.Now I need to make it manual.

e.g.When I want to create new wersion I should:- buld solution at Visual Studio, - make copy of VSProjectFolder\bin\Release- create new version at wyBuild- add files from copy of VSProjectFolder\bin\Release- build and upload pathPath

After changes it should be something like that: - build solution - create new version at wyBuild - add files from VSProjectFolder\bin\Release (wyBuild copy it to wyBuildProjectFolder\wersionFolder\files) - build and upload pathPath

because copy of files is allways needed, it should be a helpfull update.

Best Regards

That's true, Saigon. We'll be adding that in the future to either wyBuild 2.8 or 2.9.