LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2705 Visual Studio Setup Project

Intro: I developed the code with Visual Studio 2005 C++ using some LabWindows/CVI 7.1 functions from <anylisis>, <utility> and <userint> libraries. The UIR file was converted into resource file resours.c. I didn’t use Measurement Studio.

 

MSI installation package was created on the machine with English operating system. Target machine - with Russian operating system. Several merge modules were included into package cvirte.msm, msvcrt.msm, nimetautils.msm and NiMesaDll.msm. Installer indicates the error 2705. Following the recommendation of JasonAE (02-11-13) and the document http://digital.ni.com/public.nsf/allkb/19CA3B8F15B4FB9386256DDA006DFED8?

the special Program Files Folder was included into installation package. Unfortunately, without any success.

In a case only cvirte.msm is included into the package – the installer finishes the installation, but the program asks for mesa.dll. So it looks like the problem is connected with mesa.dll installation. When the msi installer file is opened with Orca – there is the directory error and NISHAREDDIR is highlighted. Could it be that installer can’t create the needed directory?

 When the msi installer file is opened with Orca – there is the directory error and NISHAREDDIR is highlighted. (See Error1 and Error2 in Errors.docx). Could it be that installer can’t create the needed directory?

When also nipaths merge module is added - Orca shows even more errors - there are additional errors coming from nipaths.msm. (see Error3)

 

Please help! I am not very experienced in programming, so the easiest way would be the best.

0 Kudos
Message 1 of 7
(4,189 Views)

Hi nikki7,

 

Which CVI Run Time Engine is included in the installer? If you got one of the earlier versions put online, there was an issue where the mesa.dll file was not included in the installer. Just to be safe, try downloading it here: http://joule.ni.com/nidu/cds/view/p/lang/en/id/149 and your installer should include this version of cvirte.msm in it. 
Besides this, a potential issue is that the program might be looking for specific English folder names to find the needed modules. Typically these modules should be installed in Program Files\Common Files\Merge Modules. Check on the target machine that the merge modules are in this location (or the equivalent in Russian).

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,174 Views)

Hi, Humphrey

 

Thanks for the reply.

1. I have cvirte.msm file dated from 07.26.2004 - later than you've suggested. Should I anyway dawnload and use it?

2. Russian languge operating system uses English names for the system folders. So Program Files/Common Files/ Merge  Modules is the correct pathname also on the machine with Russian operating system.

3. New information: I prepered two versions of the installation package: a) NIMesaDLL.msm is included into the package as shared DLL - installer indicate no errors, program can't find mesa.dll and asks for; b) mesa.dll itself is included as a private DLL and installed in the same folder as the executable - this was successful without any errors.

4. It looks like the problem is solved, however I don't like this kind of solution very much. I would prefer to have mesa.dll installed as shared one. My feeling is that  something works wrong when I try to install this DLL as a shared. Have you seen the errors shown in Errors.docx? There is a mistake with the parent-directory NISHAREDDIR - maybe it is possible to edit the installer somehow  to avoid this error?

 

nikki7

0 Kudos
Message 3 of 7
(4,161 Views)

I believe the Run Time Engine I linked to is dated 8/1/04. Actually, CVI Run Time Engines are backwards compatible so you can go for the newest 2012 version as well. Check if mesa.dll gets installed - I believe it can be found in C:\Program Files\National Instruments\Shared\Mesa.

The errors in your Word document indicate a registry level issue. When running the installer, do you have Administrator privileges?

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(4,144 Views)

1. Definitely YES - I have administrator privilege.

2. Mesa.dll is located exactly in Program Files/National Instruments/Shared/Mesa/mesa.dll

 

Nikki7

0 Kudos
Message 5 of 7
(4,132 Views)

Okay. Were all the Merge Modules in the folder we talked about? Also does this installer run okay on a different computer?

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 7
(4,122 Views)

The installer runs okay on any computer. However the problem is that around me there are only the computers with NI software installed. Naturally there were not ane problem to install the program from the very beginning. Therefore I check the situation on the client machine. This is the reason of the delay in my  answers (sorry). So give time to visit the organisation and check the location of the merge module on the target machine.

 

Nikki7

0 Kudos
Message 7 of 7
(4,095 Views)