Summary
Error -5047: Cannot create directory [1]
Symptoms
When building a project created with InstallShield, the following error may occur:
"Error -5047: Cannot create directory [1]"
[1] is a placeholder that contains the full path of the directory that could not be created.
Cause
This error has been known to occur in the following scenarios:
- If the build location is deep in the Windows file system and exceeds the length allowed by the operating system.
- When building to a network location and insufficient permissions are granted to the network folder(s).
- The build folder is currently open in Windows Explorer, thereby locking the build location and preventing the build from completing successfully.
- If a release has been corrupted because of insufficient disk space, a virus, etc., this error can occur.
Resolution
- If the build location is deep in the file system, this results in an extremely long path being used that can exceed the limit imposed by the operating system. To resolve this issue, install InstallShield Express to a shallow path. For example, use a path such as C:\Express rather than a deeper path such as C:\Test Folder\Test SubFolder\This is a test\InstallShield\Express.
- If building to a network location, contact your network administrator to ensure you have full permissions to this location. It is recommended that full administrative permissions are granted to ensure no issues occur because of lesser permissions.Another test to ensure full network access is to use Windows Explorer to manually browse to the network location and create folders or files manually. If this is possible, it is safe to conclude that permissions are not the problem.
- When the build folder is currently open in Windows Explorer while attempting to perform a build, this error occurs because the build folder is being locked by Windows Explorer, and the build cannot proceed. Close all Windows Explorer windows that have this location open, and all applications or utilities that may be locking this location. Rebooting the machine is a good way to ensure nothing else is running that may be locking the build folder.
- If the release has been corrupted, the only solution is to create a new release. To accomplish this, follow these steps:
- Select Tools > Open Release Folder in the InstallShield IDE. This will open Windows Explorer to the current releases built location.
- Navigate up two or three folders in the release folder to the directory with the current media name (CD_ROM, Custom, etc).
- Rename the existing release folder. For example, CD_ROM_bak or Custom_bak.
- In the Express IDE, select Build > Build <Release Name>.
- By creating a backup of the existing built release, this ensures when the release is built again that it is built from scratch. Therefore, if the previous release was corrupted, it should no longer be corrupted.
Additional Information
This error is briefly documented in the InstallShield Help topic Build Errors and Warnings.
Was this helpful?
Related Articles
Build Error 6652 Cannot Create isconfig.xml 7Number of Views Build Error -6002 10Number of Views Build Error 6015 6Number of Views Build Error 7001 10Number of Views Build Error 6207 8Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Revenera Assistant
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago