pyinstaller - How to pack pyinstaller inside a python code compiled into exe

I made a program that will convert python codes into windows executable..

but the problem is that when i run the code as python file, it works.. but when i compiled it into exe.. it fails to even run!

when i run the program: enter image description here

so.. what i basically want is that my program converts a python code and make it a windows executable (.exe) and i want to convert this whole stuff into a program using pyinstaller..

The same happened with cx_freeze.. it was also unable to run..

any ideas?

SPECS:
OS: Windows 7 SP-1
PROCESSOR: Intel core i3 (x86)
PYTHON: 3.8.10
PYINSTALLER: 4.3 (latest as of now)