The C# Setup.msi installer can take an argument, TARGETDIR to set the install location of the application.
msiexec.exe /i "Setup.msi" /qn /norestart TARGETDIR="D:\MY_APP_DIRECTORY"
If the application is already installed on the computer, and we try to change the install location without first uninstalling it, the installer ignores the value in the TARGETDIR property.
To be able to install the application at a new location, first uninstall the application and run the Setup.msi again.