In my project I will have to create some files and directories in my App folder in the program file. But in Vista, I am giving an error that I do not have access to create a file. What should I do now to give access? Apart from this, it does not let me reach the registry !!
The program folder does not have space to store the application data. There is a% APPDATA% folder for this - you want to store your data there.
To use the path to the correct directory and to get it.
In addition, you make a difference between just creating a folder and writing some files there (during the installation during the installation) or writing in the program folder on the runtime, while usually running under a limited account Are there.
The reason for this difference is that installation routines and setup run with high privileges under Vista / Windows 7, thus allowing them to create folders and files. However, those files should not be written to the runtime of your application .
So, what do you want to do? Write data at runtime, or enter a file (i.e. dependency) in your application folder at the same time? If it is the first, then follow the rules and use the% APPDATA% folder. If it is second, then install an installer / setup routine.
Comments
Post a Comment