Generally, the installer will validate the existence of directories listed in the directory table -- if you don't install to that directory, then don't list it in the table.
On rare occasions, this can be sourced to the issue described in You receive an "Error 1606" error message when you try to install or remove a Microsoft program
Content credit also belongs to