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

Updated Apr 21, 2020

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

The installer of any National Instruments Software (including my LabVIEW application installer) under Microsoft Windows aborts with the following message:

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

Solution

If doing a National Instruments software install: 

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.





If doing a LabVIEW application install: 
  1. Go to the Installer Properties under your build specifications 
  2. Go to the Destinations category
  3. Check that the default destination folder is created on your system