For Norway there are some important aspects you need to consider. If you have lived in Norway more than 10 years, you will stay tax resident for at least 3 years after you have moved out of Norway. To avoid having to pay Norwegian tax you can use a tax treaty.
If you currently are paying wealth taxes then you need to move to another country that has wealth taxes︀ in order for the tax treaty to cover the wealth taxes. That's why most wealthy︁ norwegians move to Switzerland, as they have (low) wealth taxes which makes that you don't︂ have to pay the (higher) wealth taxes in Norway.
There is also another norwegian rule︃ that can help you avoid tax on salary income (but not on dividens, capital gains,︄ wealth tax). So if you live in a tax free country or a country that︅ don't care to much about your foreign income then you can get the salary tax︆ free. I don't know exactly how much you could claim as salary, I'd think 4M︇ NOK is probably too high to be only salary, so some of it would be︈ dividends. If you open a new tax free company like a US LLC (which is︉ not considered pass through in Norway) then you could leave some earnings there until you've︊ become non tax resident in Norway, however the increased value of the company would be︋ subject to the exit tax, and also wealth taxes (unless you can use a tax︌ treaty like the Swiss one).