Archived:Windows 7, XP or VISTA Error: TARGETDIR is undefined, the Directory table seems malformed. Aborting...

Updated Feb 2, 2018

National Instruments does not actively maintain this document.

This content provides support for older products and technology, so you may notice outdated links or obsolete information about operating systems or other relevant products.

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

The installer of any National Instruments Software under Microsoft Windows Vista, XP or Windows 7 aborts with the following message:

Error TARGETDIR is undefined, the Directory table seems malformed. Aborting...

Solution

The installer needs a specific folder in the public directory on your hard drive. On some Windows computers, this folder was not created during the installation. If you find you're receiving this error and the C:\Users\Public\Documents folder is present already, you can try deleting and then recreating the folder using the following steps:

Note: Follow these steps exactly as making a directory in Windows Explorer will not allow Windows to detect it correctly.

Go to the command line to manually create the missing folder:
  1. In Windows, press START » Run and enter cmd.exe to open the command prompt window
Navigate to the correct folder by typing the following:
  1. Change to root directory: cd\
  2. Change to users directory: cd users
  3. Change to public subdirectory: cd public
  4. Verify, that the folder documents does not exist: dir
If it does not exist, continue with these steps by typing the following (see picture below):
  1. Create a new documents folder: md documents
  2. Verify, that the folder was created successfully: dir
Note that Windows XP computers will also fail if the C:\Documents and Settings\All Users\Documents folder does not exist. If it does exist, please contact National Instruments at www.ni.com/ask.


WAS THIS ARTICLE HELPFUL?

Not Helpful