# Filebeat install error on Windows

**URL:** https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832
**Category:** Beats
**Tags:** filebeat
**Created:** [October 13, 2017, 6:25am UTC](https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832 "2017-10-13T06:25:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tharu85](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tharu85](https://discuss.elastic.co/u/tharu85)
#### Post date: [October 13, 2017, 6:25am UTC](https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832/1 "2017-10-13T06:25:18Z")

</div>

I have uninstall previously install filebeat and received following information

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7ea1b3803077d9b10488e4d5b28d0c3f82583ab1.png)

Then I tried to install filebeat again and received following error message and I am unable to resolve this issue.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/f/ff282d1aa4e212a837fbbaa28e51054d30980e42.png)

How to resolve this issue

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [October 13, 2017, 4:23pm UTC](https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832/2 "2017-10-13T16:23:51Z")

</div>

Did you stop the service before removing it? Maybe it wasn't full uninstalled. Is there a filebeat process still running? Is there still a filebeat service registered?

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [October 13, 2017, 4:29pm UTC](https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832/3 "2017-10-13T16:29:18Z")

</div>

From [Delete method of the Win32\_Service class (CIMWin32 WMI Providers) - Win32 apps | Microsoft Learn](https://msdn.microsoft.com/en-us/library/aa389960(v=vs.85).aspx)

> Services must be stopped before you remove them. If the service is running when you issue the delete command, the service is marked for deletion, but it continues to run until it stops and all open handles are closed.

Can you please [open an issue](https://github.com/elastic/beats/issues/new) in the beats Github repo to enhance the uninstall script to stop the service before deleting. I think that would have prevented this issue.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 10, 2017, 4:29pm UTC](https://discuss.elastic.co/t/filebeat-install-error-on-windows/103832/4 "2017-11-10T16:29:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
