When trying to install Microsoft SQL Server 2012 Transact-SQL ScriptDom, you may get the following error:
Error writing to file: Microsoft.SqlServer.TransactSql.ScriptDom.dll. Verify that you have access to that directory.
The installer has encountered an unexpected error. The error code is 2350. FDI server error
The file ‘ENG_Microsoft_SqlServer_TransactSql_ScriptDom_dll_32’ cannot be installed because the file cannot be found in cabinet file ‘Redist.cab’. This could indicate a network error, an error reading from installation media, or a problem with this package.
This error is because .NET 4 isn’t installed on the server you are trying to install Microsoft SQL Server 2012 Transact-SQL ScriptDom on.