I have a problem with WyUpdate not asking for elevation when it needs to, and so my updates are failing with "Access to path is denied" errors.
Our application is installed to "Program Files [(x86)]\OurApp", which non-admin users on Win7 can't write to. WyUpdate.exe is right alongside the installation and executable. When running as an admin, the update goes fine, but as a non-admin, the next button doesn't have a sheild and elevation isn't prompted, resulting in a failed update.
I've stepped through the code, and ran onto frmMain.OnlyUpdatingLocalUser(). It doesn't seem to catch that the current, non-admin user can't write to the installation folder, and returns false. When I alter the return value to true, elevation is prompted and the installation continues successfully.
Shouldn't it be prompting for elevation when installing into a folder like Program Files, or am I doing something wrong? We just had a hellacious day yesterday dealing with support calls - my fault for not better testing with a Win7 non-admin
. But I want to get to the bottom of this and do it the right way. Any suggestions?