Wyupdate ask for admin privilege when domain user tries to update and registry issue

Hi,I have wybuild 2.6.18 installed. I am using automatic updater. It is windows server 2008 domain environment. Clients successfully receive update but when they try to install the update wyupdate asks for admin rights.Rights have been assigned to program directory. I found issue with registry. My wybuild project updates version number in client registry on every update. Interestingly, if I delete this registry update wybuild project, all client are able to successfully install the update. But if I enable registry update in wybuild project, no domain clients are able to install the update. I verified that domain users have full rights to modify registry. They are able to manually update and change registry from run command (regedit).Pls help me what is wrong with entire issue.

Thanks

Right now wyUpdate requires admin permission for any users to write to registry outside of HKEY_CURRENT_USER. In other words, wyUpdate doesn't currently dynamically check whether a user has access to write to specific keys.

There are a couple of ways around this:

(a) Make the users restricted admins rather than "partially elevated" regular users.

(b) Execute the registry changes using a *.bat file and a *.reg file. If you do this you can bypass wyUpdate's "do I have enough permissions" check.

Sam wrote:> There are a couple of ways around this:> (b)> Execute> the registry changes using a *.bat file and a *.reg file. If you do> this you can bypass wyUpdate's "do I have enough permissions"> check.

In trying to implement this feature to call a .reg file from a .bat, it still does not seem to work successfully if the user is not an admin. Running as admin allows an installation version reg key to be updated in HKLM. Any ideas or suggestions>?

Writing to HKLM will require admin permissions. So... don't try to trick wyUpdate to not elevate itself, because updating HKLM without admin permissions will just fail.

You can't get around elevation, permissions, and ACL (and if you could, it would be a security hole that Microsoft would need to fix).

OK, understood.

So how do I update the application version in something like:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{xxxx-xx-xx-xx}_is1

that was put there by InnoSetup install when Wybuild is doing an update by a Standard User?

I gave USERS permissions to my app folder in C:\Program Files (x86) and gave permissions to the registry key above, but Wybuild fails on update.

Is there another way to handle this reg key update on Wybuild update by a limited user account? FYI I am not getting an elevation prompt because I suspect UAC is turned off (Win 7) and only want the users to elevate on first InnoSetup install where I want to give all permissions at that time for future updates via Wybuild.

Thanks!

Don't turn off UAC prompt. You'll get strange behavior and errors (not just in wyUpdate, in every program). UAC prompt exists for a reason: to limit who can access what on a computer.