cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Error 1501 - Compression of file with Unicode filename building other then C: Drive

Build Error 1501 - Compression of file with Unicode filename building other then C: Drive

Summary

Build Error -1501 on project building other then C: Drive for example when building a project from "D:" Drive,  user will see this error.

Project Types

  • Basic MSI
  • InstallScript MSI
  • Express Project

Cause

Error 7354 was added to InstallShield 2016 and higher builds due to Microsoft string validations that were previously missing.

Error 1501 occurs when InstallShield attempts to build a project with and the project has string with more then 8 character  windows will throw error for shortname not able to create.

Resolution:

The user needs to enable the NtfsDisable8dot3NameCreation option on the drive where the user is building the project. Please refer attached screenshot,

  1. 1. Open command prompt in administrator mode
  2.  Navigate to System 32 path  EX: C:\WINDOWS\system32>
  3. Then run this command fsutil.exe 8dot3name query D   (Instead of D use the drive you want to check)
  4. The volume state is: 1 (8dot3 name creation is disabled).
  5. If the result says 8dot3  is disabled then you need to enable it with below command using cmdlet 
  6. C:\WINDOWS\system32>fsutil.exe 8dot3name set D : 0
  7. Then that give an output of "Successfully enabled 8dot3name generation on D:"
  8. Now you are project is ready to build in other then C drive also

Also make sure the machine has the below registry values set:

Reference:

Was this article helpful? Yes No
0% helpful (0/1)
Comments

Correct fsutil command formats:

 

Query, add a colon after the drive letter, e.g.

fsutil.exe 8dot3name query 😧


Correct the command to set the 8dot3 naming option by placing the colon immediately after the drive letter, e.g.

fsutil.exe 8dot3name set 😧 0
NOT
fsutil.exe 8dot3name set D : 0

 

Version history
Last update:
‎Aug 12, 2021 03:51 AM
Updated by:
Contributors