Active4 years, 2 months ago
Find out why Close. DESINSTALAR CUALQUIER PORGRAMA DE TU PC - IOBIT Uninstaller Full (ACTUALIZADO ). IObit Uninstaller // Instalacion + Tutorial - Duration. 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.
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.
Ken74722 gold badges99 silver badges2828 bronze badges
Fernando MoyanoFernando Moyano68733 gold badges1111 silver badges2727 bronze badges
1 Answer
Typically this error occurs because of one of the following reasons:
- 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).
- You have later installed an upgrade script with the same AppId as your original installer but without the same
[Code]
content (more common). - You have used
[Files]
entries with wildcards to source files from a directory that already containsunins000.*
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.)
MiralMiral8,77422 gold badges3636 silver badges7575 bronze badges
Not the answer you're looking for? Browse other questions tagged inno-setupuninstall or ask your own question.
Viewed 2k times
I have been able to successfully package up my ClickOnce setup into an Inno Setup install script so I could deploy it as a single EXE file to my customers. This process works fine and is relatively painless.
Now I have a new version of my application that I want to deploy. I've updated the version, published the changes in Visual Studio 2013 and packaged them up using Inno Setup again. The install process works fine except that the old version of my application remains installed and the file associations still point to that old version.
So basically I want to know if it's possible to get ClickOnce to trigger an uninstall of an old version if it exists and if so, how to do it? Is it possible to get Inno Setup to help with this given that it is not actually doing the install?
UPDATE:
I've been doing some further research and it seems like Inno Setup might be able to trigger an uninstall for a previously installed ClickOnce application. I can see the uninstall key in the registry under
If there is a way to know what the hex code above is, then I should be trigger the uninstall in Inno Setup. However I've looked through my solution and deployment files, and I can't find any reference to it. Is there a way to know what this value will be? Or is it just randomly generated at install time and we have no way of knowing what it will be?
UPDATE 2:
I found the code below, that (with some slight modifications) appears to detect my old version installed using ClickOnce (assuming that the GUID is static between installs).
The problem I have now is that while it detects the entry, the EXEC isn't actually running the uninstall command successfully. The string looks something like this:
If I run this from the command prompt it works perfectly, but from within Inno Setup nothing happens. I have checked the result code that comes back and retrieved the SysErrorMessage for it. It is:
The system cannot find the file specified.
I'm guessing that it can't find the MyApp.application file. I've tried adding a working directory into the arguments, but it's still not working.
![How to uninstall kritika How to uninstall kritika](/uploads/1/2/5/7/125777384/565240978.png)
UPDATE 3:
It looks like ClickOnce may have installed the application into the windows folder (I've no idea why that might have happened). Could this be why the the uninstall string works from the Command prompt, but not from Inno Setup? If so, is there a way around this?
UPDATE 4:
Okay, the 'file not found' error is too vague. I have no idea where the application is looking or even which file it is looking for that it can't find. Is there a way to get more information from Inno Setup to debug this problem? What might be causing this command to fail when executed using Inno Setup? Why does it work from the command prompt?
UPDATE 5:
Since I've been unable to solve this problem, I've decided to go with a temporary workaround. Rather than attempting to trigger the uninstall automatically, I've modified the version check to simply alert the user that a previous version must be uninstalled before they can proceed.
It's not ideal, but hopefully this problem will disappear with future versions. Especially since it now looks like we will be moving from ClickOnce to having Inno Setup handle the entire installation process.
Peter Mortensen14.5k1919 gold badges8888 silver badges118118 bronze badges
Adam JonesAdam Jones![Manually uninstall a game Manually uninstall a game](/uploads/1/2/5/7/125777384/691635040.png)
1,03022 gold badges1818 silver badges3636 bronze badges