
from nuitka.tools.release.MSI import createMSIPackage


def main():
    createMSIPackage()

if __name__ == "__main__":
    main()


import os
import shutil

from nuitka.tools.Basics import goHome
from nuitka.tools.release.MSI import createMSIPackage


def main():
    goHome()

    msi_filename = createMSIPackage()

    if not os.path.exists("msi"):
        os.makedirs("msi")

    shutil.move(msi_filename, "msi")


if __name__ == "__main__":
    main()

Copy created MSI to dedicated folder.
Release: Copy created MSI to dedicated folder.

* The "dist" folder is erased each time and we determine the result
  name from being the only MSI file.

  
+ import os
+ import shutil
+ 
+ from nuitka.tools.Basics import goHome
  from nuitka.tools.release.MSI import createMSIPackage
  
  
  def main():
-     createMSIPackage()
+     goHome()
+ 
+     msi_filename = createMSIPackage()
+ 
+     if not os.path.exists("msi"):
+         os.makedirs("msi")
+ 
+     shutil.move(msi_filename, "msi")
+ 
  
  if __name__ == "__main__":
      main()
  
Copy created MSI to dedicated folder.
## Code Before:

from nuitka.tools.release.MSI import createMSIPackage


def main():
    createMSIPackage()

if __name__ == "__main__":
    main()

## Instruction:
Copy created MSI to dedicated folder.
## Code After:

import os
import shutil

from nuitka.tools.Basics import goHome
from nuitka.tools.release.MSI import createMSIPackage


def main():
    goHome()

    msi_filename = createMSIPackage()

    if not os.path.exists("msi"):
        os.makedirs("msi")

    shutil.move(msi_filename, "msi")


if __name__ == "__main__":
    main()
