Hello,
I'm writing a program in c# for Windows7 that works very fine... But now I started to build a setup that copies the program files into "C:\Program Files".
Now there are a lot of Problems when the program is in that folder:
1) If I cancel an OpenFileDialog I'll get an exception
2) My program don't write files into the AppData folder anymore
3) The program can't open intern files in its own directory because of the permission
I don't know what i can do...
Can someone help me?
EDIT:
Maybe you didn't understand my problem.
I wrote a program that works fine in C:\myprogram. I made an installer that copies the files into the C:\Program Files directory, it's the same when I copy my files into that directory
- My program only opens files in its own directory
- My program opens and writes files in the AppData folder
- My program can open files like .txt in a rtb. There the OpenFileDialog will be used
This 3 points don't work!
If my program is in the Program Files folder it can't open a file like C:\Program Files\myprogram\xsl\test.xsl and can't write a file into the AppData folder.
If I install my program into C:\lalala it will work!