MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: 2705 - Invalid table: [2]; Could not be linked as tree[Next]: 2728 - Table definition error: Component
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Windows Installer FAQ (the basics)->Return Codes and Error Codes or Text->Error Codes->2716 - Could not create a random subcomponent name for component '[2]'

2716 - Could not create a random subcomponent name for component '[2]'

The root cause for this seems to be plain stupidity. Microsoft allow the specification of long component names (default 72 characters) but don't tell you that there is a shorter limit on the "real" safe length.

It is not enough that component names be unique, they have to be unique to the left most 'x' characters where Microsoft don't want to tell you what 'x' is. The documentation for this error now suggests this value could be 40...

MAKEMSI commands which automatically create components are the most likely reason for a failure of this type, check that you have not reset "FILE_GENERATED_COMPONENT_PREFIX" as when this is non blank the generated component ID will be non blank within the first few characters as MAKEMSI follows it with a unique number.

If you don't want the prefix then the chance of a problem can be reduced by setting "COMPANY_COMPLETE_FEATURE" to something shorter like "ALL". If this fails you can redefine "FILE_GENERATED_COMPONENT_MAX_LENGTH" (to 40), MAKEMSI will created unique component names within its restricted length.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: 2705 - Invalid table: [2]; Could not be linked as tree[Next]: 2728 - Table definition error: Component


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.