What causes the message "Internal Error: cannot find utcompiledcode record for this version of the uninstaller"?

StackOverflow https://stackoverflow.com/questions/22387351

  •  14-06-2023
  •  | 
  •  

Question

I have a .net application, and the installer for it has been created using inno setup version 5.4.0.

The installer works fine, but now, when I want to uninstall the application, it throws the error: "Internal Error: cannot find utcompiledcode record for this version of the uninstaller"

I would like to diagnose the cause of this issue, and fix it in the installer script (if it applies) or whatever I have to do in order to resolve this issue.

Was it helpful?

Solution

Typically this error occurs because of one of the following reasons:

  1. You have installed an older version of the software over the top of a newer version, and the two don't want to play nicely together (rare).

  2. You have later installed an upgrade script with the same AppId as your original installer but without the same [Code] content (more common).

  3. You have used [Files] entries with wildcards to source files from a directory that already contains unins000.* files (most common).

Refrain from doing those things and the error should go away. (In particular, for the last one: you should never use the installed location of your app as the source location for your installer. Always distribute "clean" files from a separate build/staging area.)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top