LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 8.5.1 Build Problem With LV2010 Installed

I am experiencing a problem when building an application installer using LabVIEW 8.5.1. I have built this application many time before but since installing LabVIEW 2010 I can no longer build the installer.

 

I have tried to buiuld the application on a Windows 7 PC and a Windows XP machine. My minimum requirment in my build options was Windows 2000, I changed that to XP but it made no difference.

 

I get the following error message:

 

CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_Build.vi >> NI_MDF.lvlib:MDFDistCopyList_GetCount.vi


Loading product deployment information
Adding files to installer
 
*** WARNING ***
Cannot enforce the requested minimum operating system restriction because the deployment engine only supports Windows XP or later. Resetting minimum restriction to Windows XP or later.
 
Done adding files
Preparing to build deployment
Copying products from distributions
 
**************
*** Error: Fatal runtime error. (Error code -10)
**************
*** Error Details:
Error in MDF API function: _MDFDistCopyList_GetCount
Access violation! Structured exception code 3221225477
*** End Error Report
**************
 
Done building deployment

 

Has anyone else come across this?

 

Thanks in advance.

0 Kudos
Message 1 of 11
(3,598 Views)

One thing I have just noticed that may be worthy of note is that in the additional installers category, the VISA Runtime Engine called is the LV2010 version. Is this likely to have caused the above error? I cannot see any way of chaning it.

 

ssk

0 Kudos
Message 2 of 11
(3,590 Views)

I'm also getting the access violation error, although I am building with LV2010.  If I build with "Install TestStand Engine" turned off, it will build fine, but turn it on and I get the error, even though I unchecked everything in "Engine Options..." (except LV RunTime 7.1.1 which I could not disable):

 

 

Starting Log.
Starting Analysis
Processing Workspace...
Workspace Processed
Finished Analysis
Building...
3:16 PM
Making an installer, please wait...
Loading product deployment information
Adding files to installer
Done adding files
Preparing to build deployment
Copying products from distributions
 
**************
*** Error: Fatal runtime error. (Error code -10)
**************
*** Error Details:
Error in MDF API function: _MDFDistCopyList_GetCount
Access violation! Structured exception code 3221225477
*** End Error Report
**************
 
Done building deployment
Internal error code -10 Making an installer, please wait...
TestStand - Deployment Utility Splash Screen.vi >> TestStand - Distribution Wizard GUI.vi >> TestStand - Build.vi >> TestStand - Create Meta Installer.vi >> TestStand - Build Meta Installer.vi >> TestStand - Copy Meta Installer Parts to Cache.vi >> MDFDistCopyList_GetIAlltemsInfo.vi >> MDFDistCopyList_GetCount.vi

The installer is finished
The build process is done.
3:17 PM
Aborted
+++++++++++++++++++++++++++++++++++++++

 

 

 

0 Kudos
Message 3 of 11
(3,552 Views)

Hey Sreynard & SSK,

 

I have two possible suggestions i would like you both to try:

 

Firstly have you tried disabling the "Copy Installer to Product Cache by Default" check box on the first tab of the builder?

 

Secondly it may be caused by the installer looking for the installation DVD in the drive that it was installed from.

 

Let me know how it goes.

Regards

Andrew George @ NI UK
0 Kudos
Message 4 of 11
(3,530 Views)

Hi Andrew,

 

Thanks for your reply, I am struggling to find the option you are describing. Please can you tell me how to get to it from the Project Explorer window?

 

Thanks

0 Kudos
Message 5 of 11
(3,516 Views)

for Copy Installers to Product Cache by Default:

 

Tools -> Deploy TestStand System...

System Source tab

see Global Settings box.

 

 

0 Kudos
Message 6 of 11
(3,499 Views)

Thanks Andrew.

 

It didn't help.  After three days of trying, I did get one system to build without error. I'm currently trying to get another system to build.

 

It looks like the Access violation is caused by the deployment utility not asking to change to DVD 3 for CVI after the product caches has been cleared (To fix the error code -40 problem).  Restoring the CVI runtime (NI LabWindows_CVI 2009 Service Pack 1 Run-Time Engine [9.1.1450]) to the Product Cache seems to fix the problem.

 

The status log doesn't show enough information to figure out the problems.  Looking at the end of the Detailed_Installer.log is pretty much manditory.

 

My recomendation is to build first with "Install TestStand Engine" and the various "Driver and Components..." turned off and then slowly enable the ones wanted. 

 

Also, it saves a lot of pain and suffering to do at least one deployment with "Copy Installers to Product Cache by Default" turned on before doing an upgrade so you don't have to go search for old DVD's.

 

 

After a lot of trial and error, I believe these are the steps I went through to finally get it to work:

 

1. Close TestStand, LabView, and Deployment Utility
2. Delete all in C:\Program Files\National Instruments\Shared\ProductCache, except the CVI Runtime
3. Delete all in  C:\Documents and Settings\All Users\Application Data\National Instruments\MDF\ProductCache, except runtime 7.1.1

There seems to be something wrong with the .NET language pack installation.  It always seems to generate errors.
3. Run DotNet20x86langpack.msi  on the Device Driver DVD at Products\DotNet20langpack_x86_Installer\ and uninstall.
4. Run DotNet20x86langpack.msi  and install.

5. Put DVD 1 back in.

Got an error with the .Net installer so. . .
6. Uninstall at D:\Distributions\LV\Products\DotNet20_x86_Installer\DotNet20x86
7. Install at D:\Distributions\LV_SE\Products\DotNet20_x86_Installer\DotNet20x86
8. Again Install  at D:\Distributions\LV\Products\DotNet20_x86_Installer\DotNet20x86


9. Run TestStand, LabView (if using VI's), and the Deployment Utility.  
Runtime 8.5.1 should install automatically and ask to reboot the system.  Go ahead reboot and run Teststand, etc. again.

10. In global settings, 'clear prompt before'. . . , and select 'copy installers to product cache by default'
11. On Installer Options tab, clear "Install TestStand Engine".
12. Build - ALWAYS 'remove all files from this folder before building'
It "should" build.  If not, fix any errors.

12. Select Install TestStand Engine.
13. Select Engine Options... and clear all check boxes (except runtime 7.1.1)
14. Build again (make sure DVD 1 is in)

15. Install other Engine Options, Drivers and Components.
16. Build again (make sure DVD 1 is in)

 

 

0 Kudos
Message 7 of 11
(3,490 Views)

 


@sreynard wrote:

for Copy Installers to Product Cache by Default:

 

Tools -> Deploy TestStand System...

System Source tab

see Global Settings box.

 

 


 

I am using LabVIEW not Teststand. Somehow this thread seems to have been merged but the original post was referencing a LabVIEW application build.

 

Thanks

0 Kudos
Message 8 of 11
(3,470 Views)

Apologies SSK,

 

I am currently working on a solution to your problem.

Regards

Andrew George @ NI UK
0 Kudos
Message 9 of 11
(3,461 Views)

Hey SSK,

 

Have you mass compiled the VI into 2010 before trying to create an .exe?

Regards

Andrew George @ NI UK
0 Kudos
Message 10 of 11
(3,398 Views)