windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

Can not install after I have uninstalled

Open ghost opened this issue 4 years ago • 7 comments

Hello there, first of all great project I use this on around 100 servers and it's so useful for metrics and alerts!

I've had this issues a few times where it consumes all of the servers available memory on version 0.10.2 (sorry I haven't reported this bug actually) so to get round this I just uninstall it and then install an older version 0.9.0

However this time when I'm running the MSI it's telling me "A later version of WMI Exporter is already installed. Setup will now exit."

There is no service running, there is no install directory in Program Files, also looked through the registry and deleted anything I could find related to wmi_exporter but it is still giving me the same error.

So in short, I can not install it on this server again which is extremely frustrating.

ghost avatar Apr 27 '20 15:04 ghost

Also when trying to install 0.10.2 that I have previously uninstalled I get the following error from windows installer;

The configuration data for this product is corrupt. Contact you support personnel.

ghost avatar Apr 28 '20 10:04 ghost

Hey @marvtec, there's another issue (#208) that references how to stop and uninstall the program. I don't have an answer for your config data being corrupted though, sorry.

bsnuggs1 avatar May 07 '20 19:05 bsnuggs1

@marvtec It would be really helpful if you could open an issue for the memory leak as well, but let's look at your uninstall problems first. In some situations (eg pending install of Windows Updates or some files being locked during uninstallation, but probably others as well) the Windows Installer subsystem will not finalize the uninstallation without a reboot. Would it be possible for you to see if a reboot clears this up?

carlpett avatar May 08 '20 08:05 carlpett

Hi @carlpett I had already tried rebooting before posting, this unfortunately did not solve the issue.

The next server I get a memory leak on I will raise an issue, however they're all behaving at the moment, it only ever seems to happen with the latest release with 2008R2 servers.

And thanks @bsnuggs1 I had seen this post before and already uninistalled, it's just the reinstalling part I am stuck with now.

ghost avatar May 19 '20 08:05 ghost

Try to add "REINSTALL=ALL" parameter, solved that for me . should look like: msiexec /i path-to-msi-file ENABLED_COLLECTORS=os,iis LISTEN_PORT=5000 REINSTALL=ALL

sergkkaltura avatar Nov 04 '20 10:11 sergkkaltura

I removed it from Control Panel\Programs\Programs and Features. It is solved

birkanyaylaci avatar Jul 06 '21 19:07 birkanyaylaci

REINSTALL=ALL

this saves me a ton of time, thanks a lot!

sbudaraj-vcc avatar Mar 23 '22 17:03 sbudaraj-vcc

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Nov 25 '23 05:11 github-actions[bot]