Access to wyUpdate.exe is denied

Hi,I'm trying to test the wyUpdate but each time I try and run the update I get an error saying that Access to wyUpdate.exe is denied. I have tried moving the update exe to different folders and have tried running it as an administrator but I still get the same error. I'm using Windows Vista. Has anybody come across the same issue?

Thanks

Stu

Hey Stu,

Can you give me a bit more information? Do you get this error even before wyUpdate starts? Or is this an error you're seeing inside wyUpdate (e.g. the update cannot install because of lack of access)?

Can you copy and paste the error here (if it's a message box just press Ctrl-C to copy the entire message, and then paste it here).

Hi Wyatt,The error occurs in the wyupdate UI. When I try and run it downloads the update but then fails. When I view the "Show details" under "An error occurred" it says the following "Access to the path 'C:\Users\dell\Downloads\Griaule\Installer\wyUpdate.exe' is denied."I've tried running the wyupdate exe from numerous directories and also running it is an administrator but keep getting the same error.

Thanks

Stu

This is a bug - thanks for finding this, Stu. We'll have it fixed in the next version coming in about a week.

The reason this is happening is that for whatever reason the copy of wyUpdate.exe has the "read-only" attribute. And when wyUpdate tries to self-update, it's unable to replace itself so it's failing hard. A quick and dirty fix is to right-click wyUpdate.exe and uncheck the "read-only" and "hidden" attributes. Then wyUpdate will be able to update itself.

I apologize for the trouble. We'll have this fixed soon.

Wyatt,I had a look at the attributes on the wyUpdate.exe and neither Read-only or hidden are set however I still get this error. I've also checked the security permissions and they all seem to be set to full control.

Thanks

Stu

That's interesting. Whatever the bug is it's exhibiting the same behavior as when "read-only" or "hidden" attributes are set.

I'm going to ask you to try 2 things:

  1. Make a copy of the the files you're testing the update on. Put this copy in C:\Program Files\TestUpdate . Then try running wyUpdate again. Do you get the same error?
  2. In wyBuild click "Build wyUpdate". Copy this newer wyUpdate.exe into the previous folder you were testing in. This should bypass the need for a self-update, but do you get the same "access denied" error when it updates your files? If so can you paste the error here.

has there been any updates to this is I am experiencing the save issue. It does look like permissions but I have gived everyone full control of the folder. The file is not read only. Both running the update through my app or simply calling the wybuild.exe. One question thought. How can the wyBuild.exe update itself when it is currently been used to run the update? Surly the reason why this fails is the the wybuild.exe is still in use by windows at the time it is attempting to update. Am I looking at this wrong?

Hey Dave,

Are you including "wyUpdate.exe" in your wyBuild project (if so, don't - wyUpdate has its own self-update function)? Can you tell me the error you're getting?

OT:@Sam: Can you add a check to wyBuild -> "Files & Folders" to don't include the wyUpdate.exe and client.wys (if the developer rename wyUpdate.exe and client.wys you find the names to check in the properties of the wyBuild project)?

Fantastic idea, Marcel. We'll add it to wyBuild 2.6.3. When you add "wyUpdate.exe" it will give you warning.

(You can include client.wyc however. wyUpdate is perfectly fine with updating that file).