Hello,
From your query, it seems you want to change the default directory when installing Wazuh components? Kindly let me know if otherwise.
If that is what you're asking, as stated earlier, the only component which you can change it's default path is Wazuh manager when you're installing from sources, this also applies to when you're using a distributed deployment approach. All other components (Wazuh indexer and Wazuh dashboard) will be installed in the default directory as that cannot be changed at the moment.
If I may ask, is there any specific reason why you want to change the path?
We remain attentive to your queries.
Best regards.