If you really can't cook any meals on your trip, you can still pack out some delicious and calorie-packed foods.
I would start with dry salamis, cheeses, olives, and breads. Individually packaged string cheese is very safe to store unrefrigerated for weeks. Nearly any cheese that is not a soft cheese will be fine.
As another poster mentioned, hard boiled eggs are also a good choice, at least for the first two days of a trip.
Smoked salmon is also a great option as another delicious protein source.
I will even take bagels and cream cheese on trips and happily eat the cream cheese after days of no refrigeration.
Lastly, you can always also just make a pasta dish beforehand (I wouldn't recommend a cream sauce though, anything else is fine), put it in a lightweight tupperware container, and eat the pasta dish straight up. I will often do this on one-nighters with my wife.
It is certainly heavier, but for short trips or in times when you can't cook, it sure is a nice option.
I would say that in general, we Americans are on the very conservative end of the "eating perishable food that hasn't been refrigerated" spectrum. We almost never do it, but IMO we are usually being overly cautious. I have never gotten sick from this in years and years of doing it for backpacking trips. Just don't eat mayonnaise that has been sitting in the sun for days. This seems to be a tricky food item that can get you sick if you're not careful. The individual mayo packets are fine though. Those will last for years unrefrigerated.
Anyway, I hope this was helpful. Take from it what you will and good luck with your trip!