Installing on Windows on a different disk keeps the data and log file on C:

When installing on Windows with the v5.1.7 MSI, and choosing to install on drive D:\, the binaries a installed under D:\Program Files\foundationdb\ but the data and log dirs are still under C:\Program Data\foundationdb\ which could be a surprise for the administrator.

Currently, the admin will need to shutdown fdbmonitor, edit foundationdb.conf, move the already created files (for the memory engine) to the new location, and restart everything.

The fdb.cluster file is also installed in C:\Program Data\foundationdb\fdb.cluster` which will be trickier to change because I think the client library will try to look there by default? I don’t see any environment variable that would help application (or fdbcli) locate the fdb.cluster if it was installed on a different disk).

Looking at the environment variable, PATH is updated correctly, and FOUNDATIONDB_INSTALL_PATH= D:\Program Files\foundationdb\.

Here is the foundationdb.conf file right after the installation completed:

## foundationdb.conf
##
## Configuration file for FoundationDB server processes
## Full documentation is available at
## https://www.foundationdb.org/documentation/configuration.html#foundationdb-conf
[fdbmonitor]
restart_delay = 20
[general]
cluster_file=C:\ProgramData\foundationdb\fdb.cluster
## Default parameters for individual fdbserver processes
[fdbserver]
public_address = auto:$ID
listen_address = public
parentpid = $PID
# logsize = 10MiB
# maxlogssize = 100MiB
# machine_id = 
# datacenter_id = 
# class = 
# memory = 8GiB
# storage_memory = 1GiB
# metrics_cluster =
# metrics_prefix =
command=D:\Program Files\foundationdb\bin\fdbserver.exe
datadir=C:\ProgramData\foundationdb\data\$ID
logdir=C:\ProgramData\foundationdb\logs
## An individual fdbserver process with id 4500
## Parameters set here override defaults from the [fdbserver] section
[fdbserver.4500]
## Default parameters for individual backup_agent processes
[backup-agent]
command=D:\Program Files\foundationdb\bin\backup_agent.exe
logdir=C:\ProgramData\foundationdb\logs
## An individual backup-agent process
[backup-agent.1]