Build Error -7354 When Building a Project with More Than 8 Characters If There Is No Short Name Defined
Error 7354 occurs when building a project with a shortcut or feature or string name with more than 8 characters.
-7354: The English (United States) value for string 'ID_STRING2' does not contain a legitimate value for table Directory column DefaultDir
-7354: The English (United States) value for string 'ID_STRING3' does not contain a legitimate value for table Shortcut column Name
- Basic MSI
- InstallScript MSI
- Express Project
Error 7354 was added to InstallShield 2016 and higher builds due to Microsoft string validations that were previously missing.
Error 7354 occurs when InstallShield attempts to create any string with more than 8 characters on a machine where NtfsDisable8dot3NameCreation is not enabled.
The user needs to enable the NtfsDisable8dot3NameCreation option on the machine.
A Windows short name has 8 characters for the name and 3 characters for the file extension. Windows long names exceed 8 characters for the name. The suggested resolution works by enabling Windows short names.
Follow these steps:
- Click Start > Run.
- Enter regedit and click OK.
- In the Windows Registry Editor, go to:
- Right-click the NtfsDisable8dot3NameCreation entry.
- Select Modify from the drop-down menu. The Edit DWORD Value dialog opens.
- In the Value data textfield, enter: 2
- Click OK to close the dialog.
You should see a message as follows:
The registry state of NtfsDisable8dot3NameCreation is X...
0 = 8.3 file creation is enabled on all volumes on the system
1 = 8.3 file creation is disabled on all volumes on the system
2 = 8.3 file creation is enabled per volume on the system (default)
3 = 8.3 file creation is DISABLED on all volumes except the system volume