Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 395
Fernando Moyano Avatar asked Mar 13 '14 18:03

Fernando Moyano


1 Answers

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.)

like image 137
Miral Avatar answered Sep 20 '22 19:09

Miral