When I use the command:
pyinstaller.exe --icon=test.ico -F --noconsole test.py
All icons do not change to test.ico. Some icons remain as the
pyinstaller --clean --onefile --icon=default.ico Registry.py
It works for Me