How do I merge an MSM with a nested MSI in it's substorage into a MSI?

Question

How do I merge an MSM with a nested MSI in it's substorage into a MSI?

Answer

This isn't really possible given the current merge tools since they don't handle movement of substorages from the MSM to the MSI.

Content credit also belongs to

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.