Where are the files?

Hi,

After successfully updating to the most recent version, where did the files go? How can I programmatically specify a location on disk?

Use the "Your program's folder" in wyBuild. This will update files in the same directory as wyUpdate.

Let me start over with the question, as I am partially confused.

After installing the update, WyBuild installs all files that I have put into the "Your program's folder" folder. However, I need to overwrite an existing installation directory.

What I envision, is that WyBuild overwrites a certain folder within my applications installation directory. How can WyBuild dynamically know where Inno setup has installed my application?

The "Your program's folder" is where ever wyUpdate.exe is sitting. So if you put wyUpdate.exe in "C:\Program FIles\Your Awesome App" then wyUpdate will know that "Your program's folder" is "C:\Program FIles\Your Awesome App"

Hi,

Let me start over again.

Inno setup installs "My Awesome App" in C:\Program Files (x86)\My Awesome App. There is a special folder within this installation directory: C:\Program Files (x86)\My Awesome App\My Special Folder. Every time the user updates My Awesome App, I'll need to overwrite "My Special Folder".

How is this possible through WyBuild?

Is the "My Special Folder" created by your app at runtime? That is, it's not part of your installer? If it's not part of your installer (i.e. create by your app) then you'll also have to delete/replace it with your app (or by executing a batch file as part of your update).

If the "My Special Folder" is part of your installer, the just treat it like any other folder you want to update. If "My Special Folder" has files A, B, and C that you want to update from 1.0 then make sure those files are in 1.0 in wyBuild, then in the latest version "X.X" make sure the "My Special Folder" is present with the newly updated files.

Hi,

"My Special Folder" is part of the installer, so I will not need to execute a batch file as part of my update.

To update the new contents of "My Special Folder":

1) Will I need to include the wyUpdate.exe in C:\Program Files (x86)\My Awesome App or C:\Program Files (x86)\My Awesome App\My Special Folder?

Also, with each update, I put "My Special Folder" into the "Your program's folder" folder in version X.X under the "Files & Folders" tab in WyBuild.

1) Will I need to include the wyUpdate.exe in C:\Program Files (x86)\My Awesome App or C:\Program Files (x86)\My Awesome App\My Special Folder?

Whichever you prefer. Whichever you want as the "base directory" of your app. If you'll never be updating files outside of "My Special Folder" then in might be easiest to plop wyUpdate in that folder.

Also, with each update, I put "My Special Folder" into the "Your program's folder" folder in version X.X under the "Files & Folders" tab in WyBuild.

Yes, if you're putting wyUpdate.exe in the "C:\Program Files (x86)\My Awesome App" folder.

Thanks Wyatt!!!

I am experiencing some complications when updating from version 1.1 to version 1.2. This is most likely because I updated from 1.2 to 1.3.

To troubleshoot this:

1) I deleted all files in the Updates folder (that WyBuild created on my desktop)2) I deleted all files on my site e.g., www.myawesomesite.com/updates3) I removed 1.3 from the X.X Files & Folders

The first time, I was able to update from 1.1 to 1.2 then from 1.2 to 1.3. I must be missing something, because WyUpdate is not recognizing (on my end) that I need to go from 1.1 to 1.2.

wyBuild currently make direct patches. So if you have 3 version released (1.1, 1.2, 1.3), any user with 1.1 will update directly to 1.3 (they'll never download the 1.2 update).

In the very near future we're adding "incremental" patching ability to wyBuild. That is, if a user is on 1.1 then when they update they'll get 1.2 then they'll get 1.3.

Thanks Wyatt,

I 'released' version 1.4 and updated. I then was able to notice the update when running My Awesome App! However, when I reinstalled My Awesome App the automatic updater did not update.

Is there a way to fix this?

You're not giving enough information. Are you removing versions of your app from wyBuild? (If so, don't.) What happens when you check for updates?

Let me apologize and try to clarify.

I downloaded the old version of "My Awesome App" and overwrote the existing installation directory - user's might do this. I then tried to update. It told me that the latest version was already installed.

This tells me that my form needs to make a comparison test for current version. Since I have an old form (showing me 1.1) I'll need to compare that with current version and "force" an update. This presents me with some questions:

1) What is the variable in the AutomaticUpdate.dll that shows the current version?2) How do I force an update?

Again, I apologize if I am not providing enough details. I will be more than happy to clarify.

It told me that the latest version was already installed.

This means 1 of 2 things: either your *.wys file is not being updated on your server (and thus your app *is* the latest version available) or the client.wyc file contains the wrong version number (double click it to check.