Pyinstaller does not have functionality to execute something before the program start, however, I have a few solutions:
Use --onedir
. Using this flag makes the script start faster as there is nothing to unpack
If you need to use the one file statement, use a batch file thats executed:
@echo off
echo Unpacking... Please wait.
program.exe