Summary
Discussion on run time error 2721Symptoms
When running an installation created with InstallShield Express, the following error message may occur:
Internal Error 2721.CustomActionName
CustomActionName is the name of the custom action in the installation causing the error message.
Cause
Error 2721 occurs if the installation is unable to find the file being launched by the custom action in the Binary table or within the project. Several factors within the project in conjunction with custom actions can lead to this error.
Cause 1
The custom action file has a long name, or the name of the EXE or DLL being launched via the custom action contains unusual characters, such as space or underscore (_).
Cause 2
The custom action has been deleted from the project, but it is still referenced in the project somewhere internally. This can happen if entries pertaining to the custom action do not get deleted completely from the project.
Resolution
Resolution 1
Rename the file being launched by the custom action. If the name of the file is unusually long, rename it to 8.3 format. This means rename the file to a name less than or equal to 8 characters with an extension less than or equal to 3 characters, e.g., testfile.exe as opposed to myNewtestfile.exe.
If the filename contains special characters, rename the file so that it does not include any special characters.
Resolution 2
-
For Express 3.54 and higher, delete all instances of the custom action using ORCA, a Microsoft Utility.
-
For Express 3.5, upgrade to SP4, migrate your project, and then delete all instances of the custom action using ORCA. ORCA will not open projects created in older versions of Express.
-
Download ORCA by following the instructions in Knowledge Base article What is ORCA and How Can I Acquire It?
-
Open your project file in ORCA.
-
Select Edit > Find or press Ctrl+F. The Find dialog opens.
-
In Find what, type the name of the custom action listed in error 2721.
-
Delete all instances of the custom action.
-
Select File > Save.
-
Reopen your project in Express and rebuild it.
-
Express 3.5x users can upgrade to Express 3.5 SP4 by selecting Help > Update InstallShield.
- Build Error 1024 may appear in projects with Error 2721. For more information, see Knowledge Base article Build Error -1024
- For .exe files, the custom action is not sequenced properly in the project. Custom actions being invoked After File Transfer or After COM Registration result in this error in versions of Express prior to Express 3.53. This issue has been fixed in Express 3.53 and higher.
- In versions of Express earlier than 3.53, using a pre-defined directory property, such as [INSTALLDIR], [ProgramFiles], or [SUPPORTDIR], in the File Name property of a custom action causes this error. Using a pre-defined directory in the File Name property is only supported in Express 3.53 and later.
Resolution 3
Author a Major Upgrade. Reference article: Creating Major Upgrades
Additional Information
Related Articles
Windows Installer Error 1310 3Number of Views Windows Installer Error 2732 6Number of Views Windows Installer Error 1907 5Number of Views Windows Installer Error 1706 47Number of Views Windows Installer Error 1406 13Number 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