The default location for a built .exe is in parallel to the source code, so both can access the configuration of the project.
For the template windows application project, the folder structure looks as follows:
/TEMPLATE/ TEMPLATE.exe /TEMPLATE_Config/ Unit_MyUnit config.ini /TEMPLATE_Source/ TEMPLATE.lvproj
hse_application build spec of the template application project uses the following settings in order to build an executable:
LabVIEW allows specifying a customized .ini configuration file when building an executable. This .ini file will have the same name as the .exe file and will be copied into the same folder as the .exe. See the NI's knowledge base article on combining an .ini with an executable.
You can provide specific locations for your application's
<%appname%>_Data folders by adding to your application's executable .ini file.
<%appname%> with your actual application name. For our Template Application, this would be
[HSE] configdir=C:\some\directory\<%appname%>_Config datadir=z:\another\drive\<%appname%>_Data
You can also provide paths relative to the application directory:
[HSE] configdir=a\relative\subdir\<%appname%>_Config datadir=<%appname%>_Data