Making a 97 Explorer system be stand-alone is easy, or hard, enough, depending on how well-optioned the vehicle was. 97 was the last year that didn't have PATS, so that should simplify matters, but you will still have a great many issues to overcome, not the least of them being the fact that certain things in the harness will not be in the correct locations on your body. Also, your diagnostics wiring will be complicated by the fact that the wires for the DLC on a 90 exist only in the engine bay harness, and the wiring for the DLC in a 97 resides partially in the dash harness.
The easier solution is to get an EEC-IV computer and compatible wiring from a 90-92 Ranger or 91-94 Explorer. This will make the wiring portion of your swap nearly plug and play going into a 90.
Explorer harnesses of any year are less than optimal for swaps into a Ranger, but the 91-94 ones can be made to work easy enough. The issue is that on Rangers all the wiring for the rear lights, and the fuel pump originate in the dash harness, go through the big white cannon plug at the fire wall, then run along the frame in the rear section of the body harness. In an Explorer of any year those same wires originate in the dash harness, but split off and stay inside the body, running under the carpet to the rear of the vehicle. If using an early Explorer harness you need to swap the shell of that big connector from the Ranger harness onto the Explorer harness leaving the needed wires from the Ranger in the connector. You can't just swap them into the Explorer connector because the holes are closed. Or more accurately they were never drilled open, and trying to do it after the fact usually produces wires that don't stick through the shell straight enough to mate to the pin on the other side.