How do I copy new binaries to C:\Program Files?
- by Michael L Perry
I'm creating a Windows app that automatically updates itself. I'm not using ClickOnce for a variety of reasons. When I try to File.Move() my updated files to C:\Program Files on Windows 7, I get the following error:
Access to the path 'C:\Program Files\<company>\<app>\<app.exe>' is denied.
I am not given a UAC prompt. The exe that I am trying to update is not currently running.