update loop

Hi,

My app is stuck in an update loop, at start-up the user is prompted to update from 1.0 - 1.1 over and over.

I recall the actual update button use to have the Windows UAC shield but it does not anymore. The only way out of the loop is to skip the update and manually run wyUpdate as administrator.

Right now I'm just running wyUpdate with -quickcheck -noerr while my app starts.

Has anyone dealt with something like this?

Cheers.

Hey Karl,

I'm not quite sure what you mean by update loop. Does the update install? After you install your update, what happens when you run wyUpdate again? What folder are you installing in (i.e. local user folders Desktop/AppData, or system folders ProgramFiles/Common Files/System Files/etc.)?

All of the files are in Program Files (x86)/MyApp

During start-up I run:

string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\MyApp\wyUpdate.exe";Process updaterProcess = Process.Start(path, "-quickcheck -noerr");updaterProcess.WaitForExit();

When I launch my app I get the wyupdate prompt that version 1.1 is available. I press Update, wyUpdate prompts to close process, and shows the update complete screen.

I run the app again and get the same prompt that 1.1 is available.

Looks like it was just a bad client file, I dragged in new wyUpdate and client files into the installation folder and the update loop is gone.

During start-up I run:

string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\MyApp\wyUpdate.exe";Process updaterProcess = Process.Start(path, "-quickcheck -noerr");updaterProcess.WaitForExit();

You shouldn't hardcode paths like this. There's no guarantee that your app will be installed to C:\Program Files\MyApp on your users' computers. Use:

string path = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "wyUpdate.exe");Process updaterProcess = Process.Start(path, "-quickcheck -noerr");updaterProcess.WaitForExit();

Or, since you're using C#, use the AutomaticUpdater control.

When I launch my app I get the wyupdate prompt that version 1.1 is available. I press Update, wyUpdate prompts to close process, and shows the update complete screen.

I run the app again and get the same prompt that 1.1 is available.

Are you actually updating any files? That is, when you update is version 1.1 of your app installed? I'm trying to reproduce this behavior. It would help if I could see your wyBuild project file. Could you send it to support@wyday.com ?

EDIT:

Looks like it was just a bad client file, I dragged in new wyUpdate and client files into the installation folder and the update loop is gone.

Ok. Tell me if this happens again.