Door Glass End Seal

I’ve replaced those before- really did not have much success- anyone documented the proper way to keep them from falling off during install?