Can the source code be compiled to somthing similar to the installer version

Hi,
this may sound unusual , but can the UE4 source code be compiled to have something similar to the binaries that come with the installer version.
Plus is there something I can do about the intermediate files that are 7GB+?
Thanks.

If you build the project in Shipping configurations you should get the installer version. Shipping is also the recommended configuration for your finished game. During development, however, you should compile in Debug or Development. Development is like Debug, but with some optimizations, so debugging may not always work right for all the code. Shipping is a fully optimized build without debug information.

More details here: Compiling Game Projects in Unreal Engine Using C++ | Unreal Engine 5.1 Documentation