I am trying to create an updater which will replace the files in the folder without needing an installer. As part of this process, I need to be able to delete old files and replace them by new files. I tried it and got an UnAuthorizedException. I am runing the updater as administrator. I tried the following a. Setting the file and folder attribute to Normal [Access to the path is denied when trying to delete a certain directory b. Taking ownership of the folder and files contained in it [Taking ownership of a file or folder c. Changing the permissions and giving all users full control over the folder and files [Using a custom action in the installer] [How to give Read/Write permissions to a Folder during installation using .NET d. Running the updater from a windows service
There is no difference in the results. I keep getting the access denied error. What do I do so that the updater can delete the files?