Hi,
Since the release of Vista access to the program files folder is restricted. If you really, really need to allow your application to write files in the program files folder, you could change the security settings on the folder. The best solution would be to change the software code so that it write files somewhere else... but assuming you can't do that, here is how to do change the security settings:
icacls "c:\Program Files\my program\*" /grant theUserName:(F)
This batch has to be ran in an elevated state. (ie during installation, or by running CMD as an administrator).
Once again this is bad practice, and you should only do this if you can't find an alternative.
Read this article for detailed reference:
http://technet.microsoft.com/en-us/library/cc753525(WS.10).aspx[
^]
Valery