LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set ini-File modifications permanently

Dear All LabView Pros

 

It became necessary to change my LabView program to Unicode. Therefore, I had to add "UniCode=true" to the ini-File of my exe.

Unfortunately everytime I rebuild my exe the ini-File gets re-written but without my modifications.

 

How can I set my modification permanently?

 

Cheers

Ben

Stay Hungry, Stay Foolish
0 Kudos
Message 1 of 5
(3,142 Views)

Hi Benjamin,

 

include the edited INI file in your project.

After having done so you can include that INI file in your Build specifications…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,138 Views)

ha!

If everything would be that easy!

 

Thank you for your quick reply

Stay Hungry, Stay Foolish
0 Kudos
Message 3 of 5
(3,129 Views)

Just as a wrapup of this topic here is a screenshot of the corresponding setting in the Build-Specification.

 

2015-05-21 09_40_38-My Application Properties.png

 

Best regards,

Peter

0 Kudos
Message 4 of 5
(3,084 Views)

Including your own custom INI is probably the easiest solution.  But another solution I've seen done which has its benefits, is to use the Post Build feature of the application builder.  Here you can specify a VI to run after a build is done.  This VI that runs can then edit the INI file for the application that was just built to always have the INI settings you want.

 

In my mind this is a more modular solution, because it can work on any project, where including your INI file only works if you have an INI file, and in that file you know the name of the application being built.  Renameing the application, or taking the INI to another project means you need to remember to edit that INI.  But running a Post Build VI can get that information and set the file for you regardless of the application name.

0 Kudos
Message 5 of 5
(3,071 Views)