I've heard of people storing their snowmobiles with some fabric softener sheets spread in the vehicle to keep out the mice.
Maybe attaching that thing to hold replaceable dryer bars of the stuff in the engine compartment away from extreme heat to prevent any fires, and still get the benefit of repelling rodents.