Check if the required .NET runtime is installed on the innosetup script. https://engy.us/blog/2021/02/28/installing-net-5-runtime-automatically-with-inno-setup/