WyUpdate Needs Administrative Privileges

I have a program that is installed to program files. I am not using the automatic updater, I am calling to wyUpdate.exe and using it's return value. I have a user that is running Windows XP, user level is Standard User.

When he tries to download and install an available update for this program, he gets a message that WyUpdate needs administrative privileges and a dialog prompting him to authenticate as a an admin user.

How can I get around this?

Thanks

Well, in wyUpdate 2.6.18 (out soon) we're adding the ability to dynamically check if the user has permission to update a folder. That is, if you set the ACL settings for a folder to allow limited users to add, remove, modify folders/files then wyUpdate won't prompt for admin privileges.

However, in the meantime the way you can let limited users update your app is to either...

  1. install your app to a folder the limited user has access to (My Documents, Desktop, AppData, etc.)
  2. use wyUpdate in a windows service.

Gotcha, I figured as much. Since this is an internal, controlled application, I think'll I'll just give limited users access to Program Files/Application Folder which should achieve the same net result, correct?

I think'll I'll just give limited users access to Program Files/Application Folder which should achieve the same net result, correct?

Yes, with wyUpdate v2.6.18 (which, as of this moment, isn't out yet). We're working to get it out soon.

Thanks!

Now, correct me if I'm wrong, but I read somewhere that wyUpdate.exe updates itself so I won't have anything to do on my user's ends to make sure they get the updated version, correct? If so, how often does wyUpdate update itself?

...wyUpdate.exe updates itself so I won't have anything to do on my user's ends to make sure they get the updated version, correct?

Yes, wyUpdate updates itself. We have these self-updates hosted on both google.com servers and wyday.com servers.

If so, how often does wyUpdate update itself?

When there's a new version of your app available and when there's a new version of wyUpdate. That is, wyUpdate only updates itself as part of the process of updating your app. If your app doesn't have an update then wyUpdate doesn't update itself (even if a new version is available).

Do you have any news about 2.6.18 versione? I have to deploy an application on some PCs, running Windows XP with standard users privileges.Thanks

Do you have any news about 2.6.18 versione? I have to deploy an application on some PCs, running Windows XP with standard users privileges.

wyUpdate 2.6.18 won't help with that case unless you set the appropriate ACLs for the folder you're installing to. That is, wyUpdate is not magic. It won't magically give standard users more permissions then they had before.

We want to release wyBuild 2.6.18 soon. We're still tracking down some bugs.

If you want interim build of wyUpdate that supports writing to folders with special ACLs granted for limited users, then either checkout the latest source code from the wyUpdate subversion repository. Or email me at wyatt@wyday.com and I'll send you the latest build.

1)Here I have installed my application in C:\MyApplication. When I tried to install the update it is asking for admin rights for the user doesnt have admin rights. Cant I install this update in user XP Machine without admin rights.

2)Iam using AutomaticUpdater.dll here i built this in VB.Net app.Once i click button to install the update it is redirecting to wyBuild window. Can i change it to install directly instead of show wyupdate screen?

1)Here I have installed my application in C:\MyApplication. When I tried to install the update it is asking for admin rights for the user doesnt have admin rights. Cant I install this update in user XP Machine without admin rights.

Yes, wyUpdate requires admin rights to install to folders that the current user doesn't have access. I don't understand what you're asking?

Either make the current user and admin, or give the current user full permission over the folder.

2)Iam using AutomaticUpdater.dll here i built this in VB.Net app.Once i click button to install the update it is redirecting to wyBuild window. Can i change it to install directly instead of show wyupdate screen?

wyUpdate is only shown during the installation of your new version. See: How can I completely hide the updater (wyUpdate)?

Is there any provision to provide the full permission to the user over the folder using wyBuild? If not can you please let me know how to set ACL permissions to the folder?

Set the ACL of a folder either using your installer or manually. You can use google to find out how to set the ACL of folders.