The tenure, number of installments etc. would be as per the terms of company. Normally this installment amount would be deducted from subsequent monthly salaries of the employee. However if employee resigns before completing the loan repayment, as part of dues clearance, company may request employee to settle immediately or adjust in Full & Final Settlement.
Some companies offer loans to employees against their future earnings. Normally these kind of loans will not carry any interest.