11-20-2009 12:36 PM
Solved! Go to Solution.
11-23-2009 05:09 AM
normally the suport files are kept in the same location where the exe gets stored (afetr you install your application) usually in a folder called support files. Now its up to you whether to expose the contents of the support files to others.
Also usually some of the support files (in case of ini or any other such files which are required bu the application to startup) will be looked by the application for its startup and they will get auto generated if does not exists.
If you have a problem of user tampering with the files then you can place it anywhere on the target PC. its up to the programmer....
11-23-2009 12:18 PM
11-23-2009 03:22 PM - edited 11-23-2009 03:25 PM
Microsoft recommends exact locations an registry keys where to store information for different purposes.
These are the rules we use in the company and they will work on VISTA and Windows 7 too.
Do not click on the links. Thsi is an exerpt from our online help and I din't got a method to convert them to plain text without rewriting them.
LabVIEW and the Windows registry store the information where all those folders are located within the file system.
Path |
Usage |
When running as a standalone application this location can be retrieved with the LabVIEW function Default Directory. When running in the development environment the module will retrieve the location of the project file using property nodes. For this purpose the project must define a symbol named Development_Mode. | |
This location can be retrieved with the LabVIEW function Temporary Directory. | |
This location can be retrieved from the registry under the key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common AppData. | |
This location can be retrieved from the registry under the key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Common Documents. | |
This location can be retrieved from the registry under the key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData. | |
This location can be retrieved from the registry under the key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal. |
For all these folders excluding Application folder subpaths are are added. The subpaths will be retrieved from the application configuration file located in the Application folder and named get_paths_for_app.config. This file is an XML or Config Data file dependend on a 1symbol set in the project containing two elements Vendor and Application. These both elements will be added as subpaths.
The only thing I haven't solved yet is the path to the project file.
11-24-2009 02:51 PM
11-24-2009 02:58 PM
If you dont want people messing with Ini files etc you could always save them as a binary file / encrypt them with a simple password. You can then give the file a different extension which you can handle in a small application / editor (written in LabVIEW) for your ini file from then on in.
🙂
Craig