09-29-2017 07:27 AM
Hello All,
the programs I develop on CVI usually run on Linux production machine thanks to the Linux compiler sold by NI. It avoids plenty of security headaches. But now I have to make a pure Windows version and I'm a bit rusty with some 'recent' aspects of Widows security.
In particular I've noticed that programs installed in C:\Program Files cannot save data there. So you cannot change ini files, or save log files, or save data, etc...
What's the best approach around this for CVI programs ?
I'd actually prefer the last solution because: (1) I don't have anything to change in the code and (2) it keeps together code, config files, logs and generated data and allows you to juggle between different versions in different directories.
Thanks
Solved! Go to Solution.
09-29-2017 08:03 AM
In recent OSes Microsoft encourages the use of personal or common data folders. You can use some SDK functions to retrieve the path to such folders: see the following thread that extensively discusses the argument:
A better way to get AppData location?