Problem updating client.wyc

Hello

I have run into another problem. I appears that wyUpdate.exe is signed after all, so I am no longer rolling my own wyUpdate. So far so good.

I have been testing my application + updater on windows 7 and I seem to have run into a little problem. I install my program using a inno setup installer I made. If I install the program in the users homedir everything seems to be working fine, but if I install the app in program files, then if I do a reboot between installing the program and installing updates. Then it appears that some temporary rights are removed and wyUpdate.exe is not longer able to update. The error I is: access to the path: c:\program files\program\client.wyc' denied (translated).

This is using the official wyUpdate 2.6.11.3 .net2 version.

This happens when you start wyUpdate, or after you install a new update? Are you running as an admin user? Do you have any group policy settings set?

This happens when I try to update my program. Part of the update is replacing client.wyc and since wyUpdate doesn't elavate itself, it is unable to overwrite the file (is my guess). I've tried both using the install-from-autoupdater in program and from starting just wyUpdate. I think my user has administratrative rights, but is not named administrator (instead arj). This user is the normal user you get when you install win7. I havn't changed anything related to group policy or anything like that.

Btw: this is 64 bit win7 but I don't think it changes anything, just wanted to get all the facts straight.

Do you have UAC enabled? If so, does wyUpdate bring up the UAC prompt when you're trying to update?

Hi Sam

Thanks for you fast response. I'm sorry that I can't be more concrete, the machine I was testing on is at home.

I havn't changed anything so UAC is whatever win7 is configured to do by default. When I installed the program I got an prompt if I wanted to allow the installer to change stuff on my machine. This I think is probably why update also work before a reboot.

But when running wyUpdate after rebooting, wyUpdate doesn't ask me anything related to permissions. It just runs and then fails because it doesn't have permissions to udpate the files in its folder.

In your wyBuild project, are you specifying any files in the "Your program's folder". If you do have files in the "Your program's folder", in the update you're testing are you making any changes to the files in the "Your program's folder" (new files, deleted files, updated file)? Or are all the changes in other folders?

The reason I ask is that we found a possible edge case where wyUpdate doesn't ask for elevation (because you're not updating any system files), but fails to account for client.wyc.

All my files are in "Your program's folder".

I wanted to test update before I released everything one last time and so I just did a new version which is the same as the old version. So I think the only difference should be the client.wyc file. Maybe this could be the bug, that in the update it figures that there are no program file updates, but there is actually one because client.wyc needs updating? 🙂

You can check the update here:

http://www.nemo-docs.com/updates/64bit-net35/nemodocuments64bit.net3.5.0.9.to.0.10.wyu

Thanks

Ah, ok, then that's the problem. You're hitting the edge case where wyUpdate doesn't ask for elevation when it should. It only happens in the case when the only "system" file you're updating is the client.wyc file.

This bug won't effect you if you release updates that change one of your app's files. We'll have this fixed in a couple of days.

Thanks for spotting it.

Cool!

I'll test it later today.

Is there a medal for finding most bugs in wyUpdate? 😀

Confirmed! It fixed the problem.