The reason why foreign investment is not in these countries is because they support national industry and the foreign companies can not see profit.This is up to companies who want to invest. I don't think these countries are not allowing others to make investment.
For example, if it was profitable for Ford to open a factory in France, we would see it.
Unlike the only solution that occurred to comrade @TheInsider the solution to a national car manufacturing economy is to incentivize your domestic brands and make it prevail against foreign investment.