Window trim removal

Anybody have a clue on how to do this? From what I have read here on FABO taking out the window is a major pain and putting it back in is worse. There must??? Be a way to do this.