title: CX_FREEZE Window - AttributeError: 'NoneType' object has no attribute write
body: <p>I am currently using cx_freeze 6.1 (had some different issues with 6.2 and 6.3) to generate MSI windows installer for an OpenCV python application. Compilation was successful and generated MSI installer.
  Installer works fine when base is set to &quot;None&quot; or &quot;Console&quot;. However, it throws error for base = &quot;Win32GUI&quot;.
  I am setting the base to Win32GUI because I don't want the users to see the prompt windows or allow them to accidentally close the application.
  Refer the attachment to see the complete error. I have tried few old solutions as mentioned in other posts but nothing helped. I tried including 'click' in excludes, it didn't help as well. Appreciate any relevant responses.</p>
  <p><a href="https://i.stack.imgur.com/s9rmu.png" rel="nofollow noreferrer">Error in Windows GUI</a></p>