# Error during Elasticsearch MSI Install (both 6.6.2 and 7.0.0)

**URL:** <https://discuss.elastic.co/t/error-during-elasticsearch-msi-install-both-6-6-2-and-7-0-0/176424>\
**Category:** Elasticsearch\
**Created:** [April 11, 2019, 2:38pm UTC](https://discuss.elastic.co/t/error-during-elasticsearch-msi-install-both-6-6-2-and-7-0-0/176424 "2019-04-11T14:38:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljh33txm](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@ljh33txm](https://discuss.elastic.co/u/ljh33txm)\
**Post date:** [April 11, 2019, 2:38pm UTC](https://discuss.elastic.co/t/error-during-elasticsearch-msi-install-both-6-6-2-and-7-0-0/176424/1 "2019-04-11T14:38:29Z")

</div>

All,

I am having an issue with installing Elasticsearch (6.6.2 and 7.0.0 MSIs have same issue). The install fails and the error listed is:

Calling custom action Elastic.Installer.Msi!Elastic.Installer.Msi.Elasticsearch.CustomActions.Immediate.ElasticsearchExistingDirectoriesAction.ElasticsearchExistingDirectories  
System.Exception: Can not execute Elastic.InstallerHosts.Elasticsearch.Tasks.Install.ExistingDirectoriesTask the model that it was passed has the following errors  
• CONFIGDIRECTORYISSPECIFIEDANDSUBPATHOFESHOME: The previous ES\_PATH\_CONF or ES\_CONFIG appears to be a subfolder  
of ES\_HOME please move these before starting the installation.

at Elastic.InstallerHosts.Tasks.InstallationTaskBase.Execute()  
at Elastic.InstallerHosts.SessionExtensions.Handle(Session session, Func`1 action)  
CustomAction ElasticsearchExistingDirectoriesAction returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)

This doesn't make sense to me as the directory structure I am using is  
D:\Logging\Elasticsearch\7.0.0  
D:\Logging\Elasticsearch\data  
D:\Logging\Elasticsearch\config  
D:\Logging\Elasticsearch\logs

---

<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:** [May 9, 2019, 2:38pm UTC](https://discuss.elastic.co/t/error-during-elasticsearch-msi-install-both-6-6-2-and-7-0-0/176424/2 "2019-05-09T14:38:33Z")

</div>

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