Create an MSI installer file from 5.0.9

I’m very new to Libreoffice. Trying to understand the code, and making few changes to it. So far, I was able to download, make changes to the code, and build it to see how my changes are applied to the code. I am interested to know how to create an installer from the source code that I have. Any help is appreciated.

Thanks!
V

UPDATE- One of the user from IRC Chat suggested me to use autogen.sh with the switch --with-package-format=msi and I did. But when I run the MAKE command, it came up with 2 errors:

  1. makecab.exe not found.
  2. could not find all needed files in path! at lode/dev/stable/solenv/bin/modules/installer/control.pm line 135.