locked
Downloading a file directly into %ProgramFiles% RRS feed

  • Question

  • Ok, first off, I know you are not supposed to do this, but can you download a file directly into %programFiles% from a running application that runs as administrator? My situation is this:

    My program is installed into %programFiles%. When a new version comes, I want to update it by downloading a new version directly into %programFiles%. Is this possible to do this by just running my app as admin? It seems to work in Visual studio, but my tester is having issues, and I think this might be the reason.

    I forgot to mention, I need this to work in Windows 8 and Windows 10.

    Tuesday, June 30, 2015 5:12 PM

All replies

  • The user will need to be running as an Administrator which means they need to elevate themselves for this to work.  Is there a particular reason why you need to do this?  This is definitely not recommended by Microsoft.

    thanks

    Frank K [MSFT]

    Follow us on Twitter, www.twitter.com/WindowsSDK.

    Thursday, July 9, 2015 12:30 AM