Open Notepad and paste the following code, then save it as viewer.reg (ensure the "Save as type" is set to "All files"):
You can either download a pre-made file from a reputable tech site or create one yourself using Notepad.
To bring back the classic viewer, you need to re-add the missing file associations to your Windows Registry. Step 1: Obtain the Registry File