Updating on Limited User Acct

Good evening,My program will create "everybody" access when my program is initially installed. When trying to updated on a limited account, I get the following message:

An error occuredClient file failed to load. The client.wyc file might be corrupt.Access to the path 'C:\Documents and Settings\Test\wc\f\selfUpdate.sup' is denied.

Is there anything that I may be doing wrong? I never gave 'everybody' permissions to this "Test" folder. This is in Windows XP SP 3

Thank you for your time

Also, one more question: If I digitally sign the wyupdate.exe with my own certificate, would this cause any problems? What about when wyupdate.exe updates itself? Would the signature get lost? Thanks!

Is there anything that I may be doing wrong? I never gave 'everybody' permissions to this "Test" folder. This is in Windows XP SP 3

Thank you for your time

This is a folder where the AutomaticUpdater stores cache files. The AutomaticUpdater presumes wyUpdate will have access to the user folder. (This is not an outrageous assumption).

So give any user executing wyUpdate sufficient permissions over the user folder (on the user account they're executing wyUpdate from).

Also, one more question: If I digitally sign the wyupdate.exe with my own certificate, would this cause any problems? What about when wyupdate.exe updates itself? Would the signature get lost? Thanks!

You need to host wyUpdate on your own server and provide self-updates.

Thank you for your reply. The "Test" user should have full access to his Documents and Settings account. This is just a newly limited user created in Windows XP, nothing special was set with the permissions. However, when running the update this just doesn't seem to be the case. Logged in as the test user I can delete the file "C:\Documents and Settings\Test\wc\f\selfUpdate.sup" letting me know that normally he does have access to this, however there is permissions trouble when trying to access it through the updater.

Any more ideas?Thanks!

My guess is that whatever you're using to set the permissions in your installer is messing up the permissions for that folder. We can't reproduce this here and there's not enough information to tell you exactly what's going wrong.

The next thing you should try is to run wyUpdate / AutomaticUpdater without modifying any permissions on the system. Does it work? If not, what happens? Does it prompt for UAC elevation?

Hi Sam,Thank you for your reply.

When I click wyUpdate.exe from the limited user account, it will download the update, and then the actual Update button within wyUpdate has the shield icon on it, then yes, it prompts for upgraded UAC elevation.

The folder (C:\Program Files(x86)\ProgramName\) has all priveleges through inno setup[Dirs]Name: "{app}\"; Permissions: everyone-modify

, I can delete wyUpdate.exe from this folder leading me to suspect this folder does have the priveleges needed to execute/modify/etc, but when I run it, then it seems to require Administrative Privelege.

Using wyUpdate version 2.6.18.4

Thanks for your time!

It sounds like InnoSetup isn't correctly modifying the permissions to the folder. Is there any reason you need this? Why not just install to a local folder (e.g. AppData) if you need non-admins to update?

Hi Sam,

Viewing the security settings on the file seems like the permissions are ok. http://www.courierlogic.com/j23.png

It seems like the only difference between Administrator and Everyone is that Everyone does not have the "Take Ownership" flag as true. The owner is Administrator, but Everyone has all possible permissions except Delete subfolders and files, change permissions, take ownership. Is this why this would cause problems? Should I give "Full Control" to the folder instead?

The reason I'd like to allow this in Program Files, is that I'd like to allow the user to select where they install the program, and typically in a corporate environment the Administrator will install once, and it will be available for all users in the machine. (Instead of requiring each user to install a copy and potentially have database issues)

Thanks

Try giving everyone full control of the folder and see if that fixes it. Also, make sure the user running wyUpdate has permission to modify their own "user" folder. That sounds like the problem. That is, a misconfiguration of user permissions.