To try this, please download and install the WiX Toolset.
There are two batch files included in the sample project folder. These batch files run as "Pre-build event" when the project is built. Please ensure that the path of the VC++ re-distributables, Fonts and other RealDWG merge modules are correctly specified in the batch files.
The purpose of the batch files is to copy all the files needed for the packaging to a common folder named as "ForPackaging". The WiX setup project builds the MSI by using this folder path without having to look for files in different paths.Download MyRealDWG_Sample