I’m surprised nobody has created a way to automate this process - I imagine that any tool that makes it trivial would be quite popular, given what a pain it can be to set up manually.
That way if you wanted to make changes like install patches on Windows or change the DOSBox config you only have to do it to the redist.