06-17-2021 07:22 PM
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.
Anywhere else? Can I skip any of the above?
06-18-2021 01:34 AM
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.
- Rename the .ini file
- 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)…
06-18-2021 09:41 AM
I would just rebuild the executable with the new name
06-19-2021 03:52 AM - edited 06-19-2021 03:54 AM
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?
06-21-2021 10:51 AM
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 🤔
06-21-2021 10:56 AM
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.