If a company glues in the glass pack on a window, how do you get it out without destroying the moldings, etc..

the glass is fogging and needs replacement, but by the time I get the old glass and molding out, I practically need a new window and they are very expensive – Anderson 3 pane, dual glazed.