Is there a way to make my pumpkins last longer? - eviltoast

I carve the pumpkin, and it looks good for about two days before withering.

Lightly bake it after carving maybe? (what temperature and how many minutes?)

Is there a way I can soak it in some preservative like formaldehyde without starting the Great Fire of London?