Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66679

Built classes directly into an exe for dynamic loading. But now the installer builder claims that the files can't be found in the built exe?

$
0
0

Here's the situation:

 

I'm dynamically loading lots of classes in my application. These classes are sent to known destinations inside the exe, as specified in the exe build profile.

 

The exe builds and runs flawlessly.

 

But when I try to create an installer for the built exe, I get an error claiming that the files can't be found.

 

It looks like this:

 


 

The following file(s) are not found on the system:
 
 
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Configuration Manager.lvclass
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Configuration Manager.lvlib
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Read All Modules Ready.vi
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Read Caller Data SEQ.vi
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Read Dialog Launched.vi
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Read Element of Enqueuer Array.vi
C:\builds\APT\APT.exe\Dialogs\Configuration Manager\Read Elements of Enqueuer Array.vi
 
etc...
 
Ensure the files exist and any included build specifications are built.
 
 

That's no good!

 

When I hit "Show details" on the error window, it returns the following:

 


 

Click the link below to visit the Application Builder support page. Use the following information as a reference:
 
Error 7 occurred at CDK_Utility_GenerateErrorCluster.vi -> CDK_Engine_FileExists.vi
 
Possible reason(s):
 
LabVIEW:  File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.
=========================
NI-488:  Nonexistent GPIB interface.
 

 

Looking at the installer profile shows that it thinks the classes should be in a FOLDER called "APT.exe" rather than actually contained inside the file "APT.exe." This is bizarre, as the exe build profile makes the correct distinction and knows that APT.exe is a file, not a folder. I'm able to set destinations to be within APT.exe and the files build into the executable, rather than a system folder with the same name.

 

I'm new to using dynamic class loading in applications; is this a common issue? What's the solution/workaround?

 

Thanks guys.


Viewing all articles
Browse latest Browse all 66679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>