Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
3 rating:
 1.66 out of 5   

Error -2705 from the MSI Installer Built with the Visual Studio .NET Installation Builder

Primary Software:
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

When I create a setup project in Visual Studio .NET that includes nimetautils.msm, I receive the error:
Error -2705 Cannot link directory tree 

Why am I receiving this error and how can I fix it?

This error occurs on non-english operating systems due to an issue with Visual Studio .NET and the MSI engine. Visual Studio .NET allows you to include default directories in the installer such as ProgramFilesFolder, SystemFolder, etc. On English operating systems, MSI fills these in automatically whether asked for or not. On foreign operating systems, MSI does not fill these in automatically. Therefore when the nimetautils merge module asks for ProgramFilesFolder you get an error.

To solve this error, follow the instructions listed in the third footnote of the Measurement Studio .NET Merge Modules topic within the NI Measurement Studio Help collection. The footnote contains the following information:

Any deployment project that contains the nimetautils.msm merge module must include a ProgramFilesFolder entry in the Directory Table. To include this entry in Visual Studio .NET, add a "Program Files Folder" as a Special Folder in the File System view of the deployment project.

Related Links:
KnowledgeBase 2HSDJOX0: Error Importing Measurement Studio 6 Merge Modules into Visual Studio .NET
KnowledgeBase 2W3G520Q: Distributing Measurement Studio ActiveX Applications


Report Date: 11/10/2003
Last Updated: 08/11/2008
Document ID: 3332LH42

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit