Forcing a cat inside will scare her/him and therefore won't want to go in again.
Try putting treats inside and familiarising the cat with the carrier so he/she doesn't regard it as scary and gets used to going inside.
Otherwise, it's just a question of will power and patience.