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.
- Select Tools > Open Release Folder in the InstallShield IDE. This will open Windows Explorer to the current releases built location.
Additional Information
This error is briefly documented in the InstallShield Help topic Build Errors and Warnings.
Related Articles
Build Error -1014 15Number of Views Build Error -5008 11Number of Views Build Error -4075 6Number of Views Build Error -1014 9Number of Views Build Error -6207 8Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
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. | |
Case id: 00001065
Activity: Status change: 2 hours ago