I have made an installer (using Inno Setup) for my software, which is finally installed in
C:\Program Files (x86)\MyApp\myapp.exe
as usual on Windows platform, and it works perfectly.
A problem comes when my software tries to write its config file here :
C:\Program Files (x86)\MyApp\myapp.cfg
here a Permission denied
error arrives !
The only solution I have found is "Run software as administrator", but I don't like this solution : I don't want to ask the final user to have to do "Run as adminstrator" each time they will use the software.
Is there a clean solution for having the right to write in C:\Program Files (x86)\MyApp\myapp.cfg
without asking the final user to "run as administrator" ?