04-07-2022 07:33 AM
I want to run a project on a PC where there is no labview installed(for the first time in my life) . The project runs fine on a PC with labview. Following steps below and getting following errors. Can someone help please? Thanks
Procedure followed- 1)open project ,right click on build specs--new--installer-checked that there was a checkmark in box to include runtime engine
this creates My installer folder with application file named setup application(I dont have administrative access,but did not get any error)
2)open project ,right click on build specs--new-application. This creates My application folder with application file named application.
now tried to 3)run My installer on the PC (without labview on it) where I want to run the program, ran fine without any error.
4)Ran Application.This gives errors.
Errors- searching my application\instr.lib
When clicked on ignore, it gives me more errors like
Resource not found, An error occured loading vi 'Daqmx wait until done' and then it gives me the same error for multiple vis.
Not sure what is going wrong. Any help is appreciated
04-07-2022 07:38 AM
I assume your application is using file from ...\instr.lib .
Have you put those folder as "always included" in your application build? Or did you put just your main VI?
04-07-2022 08:00 AM
Normally you build an application, then the installer.
The way you describe things, you build an installer before even adding an executable build spec.
You have to actually add the executable to the installer, or you get an installer that installs just the run time engine (if that's still possible nowadays).
Notice here: Creating Installer - LabVIEW - YouTube for instance, there already is an executable build specification (shown here:Creating Executibles - LabVIEW - YouTube).
The steps you described are incorrect, and probably not how you actually did it. If you want us to follow or help, we need every gory detail in the right order... Or upload the project.
04-07-2022 09:04 AM
Thanks. Will go thro' and let you know.
The project I am trying to run on another PC (without Labview on it) is a very small project which I want to try first . If successful, I can follow the same procedure for bigger projects I have ready. I will upload the project but I want to try the procedure myself and see it running.
04-07-2022 09:23 AM
I usually let it decide what additional installers the installer needs. It sounds like you are missing some drivers or something.
04-07-2022 09:40 AM
"Errors- searching my application\instr.lib "
That sounds to me like you didn't include DAQmx in the installer? Did you tick "Automatically select recommended installers" in the Additional Installer part of the Installer configuration?
04-08-2022 09:50 AM
Thanks everyone for the overwhelming response. This time I paid particular attention to building application first and then installer.
During building installer, I was proceeding with the first screen pic before. Now I an adding my application to the source files as in second pic. When I proceed to this, it gives me error asking for admin rights which is as below . I believe this is normal and I am doing it right this time? In that case I can ask for admin rights and try again.
04-08-2022 10:13 AM
@maccapple wrote:
When I proceed to this, it gives me error asking for admin rights which is as below . I believe this is normal and I am doing it right this time? In that case I can ask for admin rights and try again.
When do you get this error? When you build or when you install?
During build, the destination should be somewhere where you have rights. Not Program Files (just to be sure, we can't see what you're doing!). It's not normal if you need admin rights during the build.
During installing, you need admin rights to install... This is a Windows thing, and can't be changed in the installer. Totally by design, we don't want to allow a virus to install itself. Even if your account has admin rights, you get a dialog to get elevated rights.
04-08-2022 12:34 PM
get this error when I build. sending all the settings . Even if i choose "temp" folder in destination,source files and source files settings,it gives me same error
04-11-2022 03:17 AM
@maccapple wrote:
get this error when I build. sending all the settings . Even if i choose "temp" folder in destination,source files and source files settings,it gives me same error
During the build, only Installer Destination should be used. The destination folder isn't used until the install.
Just to see if it makes a difference, can you try if the build succeeds if you start LabVIEW by right clicking and "run as administrator" (if possible)?
An aggressive anti-virus program could make this fail. I've only seen this with FPGA builds, not with executables or installers. Small change, but you can try to add the build directory to the list of scan exceptions (if possible).