I fixed problem using Atypes: import ctypes ctypes.windll.user32.MessageBoxA(0, 'test', 'Title', win32con.MB_ICONINFORMATION | win32con.MB_OK | win32con.MB_TOPMOST) It compiles and runs fine with py2exe. Dont remember buggy pywin32 :)