Getting "Invalid serial number" on XE4 modification

Abstract: "Invalid serial number" when modifying/repairing/uninstalling XE4

In RAD Studio, Delphi, C++Builder, XE4 there can become a scenario if you try to modify, repair, upgrade, or even remove the installation you will get an "Invalid serial number" message.

The solution appears fairly simple and we have tracked it down where we are adding a couple of errant lines to our CGLM.INI files. You can find/edit these in 2 locations:

[on 64-bit Windows 7 and later]

\ProgramData\Embarcadero\RAD Studio\11.0

\Program Files (x86)\Embarcadero\RAD Studio\11.0\bin

[on Windows XP]

\Documents and Settings\All Users\Application Data\Embarcadero\RAD Studio\11.0

\Program Files\Embarcadero\RAD Studio\11.0\bin

The malformed lines will look something like:




If you just edit and remove those lines and leave the rest, the installer action should perform better on the next attempt.

Please keep in mind that the file in Program Files will have some permissions restrictions on Win7 and later operating systems. The easiest way to edit often is to copy elsewhere like your Desktop, edit, and then copy back and overwrite the previous one.

**Be sure to make backup copies prior to any editing.