You need to use 3m bedding ang glazing compound on both the glass and body side. It's like liquid butyl and stays pliable. It's messy but the only way I know to get leak free. It comes in a caulk tube.
http://3mcollision.com/3m-auto-bedding-and-glazing-compound-08509-1.html