09-13-2017 12:57 PM
Hey All,
Im building an exe file using LV 2016 64-bit with Windows 7 OS. I've created an installer as well and I've tested my application on multiple Windows 7 OS pc's, so I know it works.
Problem: I try to run the installer on a "Lenovo® H30 Slim Tower Desktop PC, AMD E1, 4GB Memory, 500GB Hard Drive, Windows10, 64-bit" computer and I keep an error "resource not found lvanlys.dll"
Extra Info: Before I tried running my application (which is built using LV 2016), I did install the free version of Labview, which is currently Labview 2017 32-bit version. This Lenovo desktop pc is new and has never been used.
I've looked in the build files and I see the Data folder was created (which has lvanlys.dll), so why doesn't my application use it? How can I dow my application on my Windows 10 PC?
I've attached the lvproj and the exe files.
09-13-2017 01:19 PM - edited 09-13-2017 01:20 PM
You will need to install the appropriate LabVIEW runtime engine for LabVIEW 2016 64bit. Had a similar problem, it was fixed by putting the newer (in my case LV Runtime 32 2015) on. It had LVRTE 2015, but it was an older version apparently. You need the LVRTE version that corresponds to the version used to make the exe, they are not backward compatible.
09-17-2017 03:29 PM
Sorry for a late response, but I had to research issues relating to this as well as build my exe with multiple RTE versions. I wanted to try potential solutions before I reposted.
OK, I've built by exe file with LV Runtime 2016 f2 and then I had built Stand-Alone Applications (From NI, "Stand-Alone Applications:
You can develop stand-alone applications (executables) that only require the LabVIEW Run-Time Engine to run on systems without LabVIEW installed.")
I made sure that when I built my Stand-Alone Application, it installed LV Runtime 2016 f2, therefore exe has always been built using the correct RTE.
When I install my Stand-Alone Application, here are the errors I'm getting when I click the Run button: (attached)
Note: The run button is broken as seen in the attachment, but but when I run this Stand-Alone Application on the PC that I built in on, which is a Windows 7 OS, the VI works with good Run button.
09-17-2017 04:05 PM
I don't get it. I've built multiple Applications (.exe), but until a month ago, I'd only installed them on PC that I'd also installed LabVIEW (so I could test "in situ"). But then I needed to install some LabVIEW 2016 applications that used VISA and NI Vision, and the machine hosting it was running LabVIEW 2014, so I built an Installer, which installed the appropriate LabVIEW RunTime and Drivers. Worked like a charm.
Isn't that what you did? I thought that was the whole point of building an Installer (in addition to the Application).
Bob Schor
09-18-2017 01:06 PM
Are you building an exe and manually installing it and the LRTE, etc.? Or, are you, as Bob asks, building an installer, which if properly configured, will figure out which is the appropriate LabVIEW Run Time Engine and other drivers. The pain then is that it may ask you to put in specific installation media (I am fighting with that, having installed 2015, 2016 since the project I am building the installer for was done), to get the expected versions. And the resulting file size will be big! We had an issue here (not the one mentioned above) where it appeared that we had the correct LRTE and VISA installed, but got the error you are reporting, even though the same dll was in the support folder. Not sure why it copies that if it isn't actually going to use it, but it appears it does.
09-18-2017 02:51 PM
Thank you guys for replying...and I did what Bob had said about building an application installer which installs the appropriate LabVIEW RunTime and Drivers.
The desktop computer, I'm trying to install my application on, never had Labview installed on it ever (until I installed the free 2017 Labview 32-bit version during the same time I tried to install my application). I only installed the free 2017 version because I thought it may help...I had to try. But, installing the free 2017 Labview version shouldn't have any affect on my "Stand-Alone application", hence the name...I hope NI personnel know about all the Windows 10 issues out there, because as I research more and more, it seems there are many incompatibility issues.
I've installed my application on many Windows 7 computers and I know it works...the only variable I see that it different is the OS.
I dont know what else I can try....I hope someone out there knows.
09-18-2017 06:22 PM
@CabanaCE wrote:
I only installed the free 2017 version because I thought it may help..
I am not aware of any "free versions". What exactly did you install?
09-18-2017 07:17 PM
Its a free evaluation version (attached)
Link: http://www.ni.com/gate/gb/GB_EVALLVVAV/US
Regards,
Chris
09-18-2017 09:25 PM
A couple of comments.
Bob Schor
09-19-2017 02:09 AM
I agree with you and that's why I didn't put much hope into that being a solution (me installing the free LV 2017 version), but I had to try. I just had to list everything I did during my troubleshooting just in case someone noticed I did something wrong.
All and all, I've built a stand-alone application with LV 2016 and it should work on Windows 10 OS, because NI says it's compatible. My application works on all Windows 7 OS that I've installed it on, which some never had any LV version installed on in.