In case of the IPO route, the foreign company directly issues shares in India to investors.
In case of IDRs, the foreign company delivers its foreign currency denominated shares to a depository through a custodian bank. The depository then issues proportionate IDRs which represent those underlying shares to the foreign company. The company then issues these IDRs to the investors and these IDRs are freely traded in the stock markets