How do I copy new binaries to C:\Program Files?
Posted
by Michael L Perry
on Stack Overflow
See other posts from Stack Overflow
or by Michael L Perry
Published on 2010-03-16T01:00:38Z
Indexed on
2010/03/16
1:09 UTC
Read the original article
Hit count: 369
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.
© Stack Overflow or respective owner