03-25-2010 08:33 AM
In older version of LabVIEW, we could use an ini file that would be the same as the one automatically generated by the build process. Then, during the build, LabVIEW would add the fields it required to this file. That would leave a nice neat single ini file for the application.
Now, during the build, LabVIEW copies our file over, then deletes it and replaces it with only the fields it thinks are needed.
03-26-2010 10:49 AM
03-26-2010 10:59 AM
Let's say I'm building MyApp.exe.
In the past:
I included a file called MyApp.ini in the build setup to be included with a destination of the root directory of the build. The LabVIEW app builder would copy this ini file over. Then, the app builder would modify the ini file adding a [LabVIEW] section and a set of keys under it.
LabVIEW 2009:
Now, after it copies MyApp.ini over, it deletes it and replaces it with a new ini file that only includes the [LabVIEW] section. Basically, not opening the ini file if it exists, but instead forcing a new one.
My concern is that NI will perceive this as a 'fix' of the previous version; when, in fact, it was a nice feature allowing you to have one ini file for your application.
03-26-2010 12:37 PM
03-26-2010 01:27 PM
03-26-2010 01:35 PM
I believe I just saw that issue in LV 2009 abou two weeks ago.
THe ini is included as part of the build spec and what I had in there got stepped on.
Ben
03-26-2010 01:41 PM
It only deletes it during the build process. Afterward, we've just been copying over the ini file and everything works fine.
I believe everything up through 8.6 acted one way. Only in 2009 have we found this to be an issue. I know we used this technique going back to 7, maybe 6.1. or 6. It's been so long that I haven't even thought to question the way we do it.
03-26-2010 02:30 PM
03-27-2010 06:38 AM
Im glad you have pointed this one out as I have recently started to use 2009 to create my installers.
Normally in my installations I only add files that have default values and are not critical to my application, all other files I include in a support folder on the install disc and run the install from a setup.bat file. This way I can call the installer and add/delete any files programmatically once the installer has completed.
03-31-2010 12:14 AM