diotmac
Posts: 2
Joined: Mon Sep 16, 2024 5:57 pm

Error during uninstall of service

I have an installer used to install a Windows service that installs properly, but gives me an error during uninstall - see picture attached.

This is the error in case anyone searches for the same issue later on:
"Could not open key: HKEY_LOCAL_MACHINE\Software\Microsoft\EAPSIMMethods\18\FastReauthContext. Verify that you have sufficient access to that key, or contact your support personnel."

The only thing out of ordinary with this installer is a custom dialog that asks the user for an identifier that is then added to the registry under "Current user/ Local machine/Software/[Manufacturer]/[ProductName]"

Has anyone seen a similar issue or can point me towards a possible source/solution for this problem?
Thank you
Attachments
UninstallError.jpg
UninstallError.jpg (20.78 KiB) Viewed 5953 times
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Error during uninstall of service

Hello and welcome to our forums,

Unfortunately, I can not say for sure why this is happening.

One thing I can think of would be you changing the permissions to one of those keys during the installation.

However, to be sure of this, could you please forward me the following resources:

- a copy of the AIP file

- a download link for the setup file (exe/msi)

by email at support at advancedinstaller dot com so I can further test and investigate this?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
diotmac
Posts: 2
Joined: Mon Sep 16, 2024 5:57 pm

Re: Error during uninstall of service

Thank you Catalin,

I've sent the link for the installer and the AIP file as well to the support email on Tuesday.
Are you able to tell me how long does it usually take for support to reach back?

Appreciate your help,

Diogo
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Error during uninstall of service

Hello Diogo,

Apologies for the quite delayed reply on this, it seems that your email somehow ended up in the spam folder.

I downloaded the resources now and will start investigating the issue and will followup soon.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Error during uninstall of service

Hello Diogo,

As promised, here's my followup to this.

The above is happening (and thank God it does), because you have the "Delete (if present) at uninstall" option set for the "Software" key in the "Registry" page.
Screenshot_200.png
Screenshot_200.png (34.58 KiB) Viewed 5449 times

Not quite sure how you ended up checking that option, but please uncheck it and rebuild your project.

Now, in order to fix the corrupted MSI from your machine, please open a command prompt (as administrator) and run the following command:

Code: Select all

msiexec /fv <path_to_newly_build_msi>
Now try again to run the uninstall and everything should be working as expected.

We're lucky the operation failed and everything was rolled back, otherwise you could've damaged the OS greatly. :)

From now on, please make sure to test the setups on a Virtual Machine / Windows Sandbox.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”