01-26-2023 09:30 AM
Hello. I have created an executable and bundled it into an installer so the software can be used on other computers. When the installer is run it gives an error message about a missing initialization file. I can see the ini file in the installer list before the build, so I'm not sure why this message appears. When I send the ini file along with the installer file for installation, running the installer gives a new error saying it can't find a dll. Any pointers? Thanks for any help.
01-27-2023 08:11 AM
Are you using the Application Builder to make the installer? I've not seen an error like that, can you share a screenshot? What version of LabVIEW and what OS are you using?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-31-2023 03:53 PM
Hooovahh,
Thanks for your reply. I am using the LabView 2021 application builder. It is running on Windows 10 Home edition. When I try to run the executable on a computer (Windows 11) if gives the error message
. A copy of the error message is attached. Thanks for taking a look.
Mike
01-31-2023 04:47 PM
Well LabVIEW 2021 actually supported officially on Windows 11. I wouldn't expect it to have any problem, and in fact I've got a couple LabVIEW applications on Windows 11 from LabVIEW 2020. But it is possible there is some dependent tool that your version of 11 doesn't have that it needs. NI would have to chime in, so you might need to contact them for support.
You could start with a very simple application and see if it works, then start adding things until you get to what you actually want. Sorry I don't have any other suggestions.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-31-2023 05:38 PM
What do you see if you click on the "details ..." Button?
01-31-2023 05:55 PM
@BeeEyeBye wrote:
Hello. I have created an executable and bundled it into an installer so the software can be used on other computers. When the installer is run it gives an error message about a missing initialization file. I can see the ini file in the installer list before the build, so I'm not sure why this message appears. When I send the ini file along with the installer file for installation, running the installer gives a new error saying it can't find a dll. Any pointers? Thanks for any help.
So what exactly is an "installer file"? A build installer is of course a large set of files and folders. Are you sure you keep everything together? Are you trying to run install.exe inside a zip file or do you unzip first?
01-31-2023 07:46 PM
Thanks. I'll try that.
01-31-2023 08:17 PM
'Installer file' is what I call the executable that results from using the application builder 'installer' utility. The application builder adds a lot of important files on its own. I add the application which includes the exe, aliases and the ini. If there's something else that I need to add please let me know.
When the resulting executable is run it complains unless I drop the ini file in (again) into the same directory. Even then it gives an error message and quits. Any ideas what I'm doing wrong? Nope, not running it inside a zip.