If you check "Try to change associations in System-Registry (for XP, Vista, Win7, Win8)" on the IrfanView installer, the installer will add "NoOpenWith" values under Photo and Movie&TV registry keys to try to prevent them from taking over default apps.
Although this method worked on some older...