- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Build Error 1501 - Compression of file with Unicode filename building other then C: Drive
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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. Open command prompt in administrator mode
- Navigate to System 32 path EX: C:\WINDOWS\system32>
- Then run this command fsutil.exe 8dot3name query D (Instead of D use the drive you want to check)
- The volume state is: 1 (8dot3 name creation is disabled).
- If the result says 8dot3 is disabled then you need to enable it with below command using cmdlet
- C:\WINDOWS\system32>fsutil.exe 8dot3name set D : 0
- Then that give an output of "Successfully enabled 8dot3name generation on D:"
- 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:
- KB article to enable NtfsDisable8dot3NameCreation.
- A blog post about NtfsDisable8dot3NameCreation.
- Microsoft documentation about Windows long names.
- Mark as Read
- Mark as New
- Permalink
- Report Inappropriate Content
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