Spearmint oil in small open containers will keep them all away. Boat owners have been using this trick for years to keep critters out of boats in storage for the winter.
You can try stuff like this, but my experience has been that these kinds of methods just don't work reliably. Bill Valavanis advised using those ultrasonic deterrents and I picked up a couple of those. I've seen mice run right over them as if they weren't there. I read about using mothballs here so I bought some last winter and used them all around the perimeter of my storage area. Mice still got in (but the barn sure did smell bad, would probably be more effective to keep human predators out).
The only things I've used that have worked reliably are (1) traps (but these can be messy, must be emptied, etc), (2) poison bait (but this can mess up the local ecosystem as sick rodents get outside and get eaten by predators, especially raptors), (3) trunk wrapping (though the critters can still climb and eat higher parts of the trunk or branches, less likely to girdle the all important lower trunk) and (4) exclusion, build a solid structure with no entry points for rodents.
I know that member fourteener advocates providing food for the rodents so they are less likely to go after trees. I haven't tried this approach.