Yeah, I would go with Anne's method. I like French Marigolds because of their natural insecticidal properties at the root zone, but to deter things with sensitive noses, I like to include the smelliest alliums possible.
I would also look at a companion planting list for herbal companions that both have a fragrant component and enhance the essential oil production of herbs. I like yarrow to do the latter, and any herb that interacts with alliums to increase their nutritional density is going to make them more pungent.
Realistically, growing pungent herbs and alliums in healthy soil, topdressed with healthy, living
compost and mulched appropriately, will produce alliums and pungent herbs of a pungency exceeding that of what could be expected from the same thing found in a grocery store.
Also, I remember walking my parents' Maltese Terriers around our garden beds one year when we had problems with wild rabbits. They would sniff and mark their territory, all around the perimeter, and rub themselves up against posts of garden bed infrastructure. I think the rabbits moved along elsewhere in the first week of this treatment.
Now I know my little Maltese couldn't have managed to even catch those things, never mind eat them, but the rabbits didn't know how little the big, bad, canines were that marked the garden bed.
And after they had passed, and I was gardening elsewhere and had issues with raccoons and squirrels, I peed around the perimeter of my raised bed myself. I don't think the raccoons cared, but the squirrels avoided it like cats, and it helped with some localised nitrogen deficiency.
-CK
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
-Robert A. Heinlein