You must transfer the ownership, but before you pay by installment, the owner (the owner on the driving license) is neither your friend's nor yours, but the bank's. After the installment payment, the bank will transfer the owner to your friend (because it is your friend's credit card), and then your friend will transfer it to you. This is very troublesome!
If you buy a car with a friend's credit card (not an installment loan), then the car's driving license can be handled directly for you!