LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Associated changes to make when renaming an executable

I'd like to rename the executable (append a build number so that it can be searched by name). I found two spots that use the executable name and I think I have to update those too.

  1. Rename the .ini file
  2. Rename the section name in the ini file

Anywhere else? Can I skip any of the above?

0 Kudos
Message 1 of 6
(3,030 Views)

Hi nanocyte,

 


@nanocyte wrote:

I'd like to rename the executable (append a build number so that it can be searched by name). I found two spots that use the executable name and I think I have to update those too.

  1. Rename the .ini file
  2. Rename the section name in the ini file

Anywhere else? Can I skip any of the above?


These two locations are the ones to keep in mind. Anything else should only be inside your own code…

 

Well, you can even skip those two items, then your executable will use LabVIEW's default settings (and may even create a default exe.ini file again)…

Best regards,
GerdW


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

I would just rebuild the executable with the new name

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 6
(2,966 Views)

Unless you use a custom ini file with specific settings inside your project, that ini file will get automatically build by the application builder, using some of the settings from your project and/or LabVIEW preferences.

Inside your code are also many possibilities where you might make assumptions about the name but that would be bad programming practice.

Or are you talking about modifying the name automatically after the build, in a post-build step?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(2,919 Views)

I was considering renaming (appending a build number before the .exe) the exe after the build.

 

I guess I could go the other way and rename the exe in the build spec and have the app check its own exe name 🤔

0 Kudos
Message 5 of 6
(2,864 Views)

At least on Windows you can also simply execute <LabVIEW>\vi.lib\Platform\fileVersionInfo.llb\FileVersionInfo.vi passing it the name to your own executable. The LabVIEW application builder generates a version resource from the Build Specification and adds it to the resulting EXE, DLL, PPL file. Unfortunately this only works for Windows.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 6
(2,860 Views)