I\'ve built a Windows Application using c#, on Windows 7.
Everything was working fine, so I\'ve created a Setup Wizard project and then built it. Once I install the
The solution is not to grant rights to that directry but to instead write to a folder that is more suitable for application logs. The "Program Files(x86)" and "Program Files" is a place for application installation, not logging.
A more appropriate location would be the per user data folders
Or the result of Environment.GetFolderPath for the following values