After I discovered that there is codeblocks-20.03 porteble decided to give it a try. When I tried to compile the simple helo world got this error:
Tried to run compiler executable 'C:\MinGW/bin/mingw32-gcc.exe', but failed!
Looks like it was searching for compiler in C: instead of the folder of codeblocks, which makes the version not really portable. Have fixed the path manualy, but the portability problem remained as absolute path is used by codeblocks.
And even after fixing the path got a similar error. After cheking for MinGW/bin/mingw32-gcc.exe I noticed that the file is not existing.