You can have multiple configuration files for multiple instances. When starting the exe, give command
YourEXE -c ConfigurationFileName
That's true if you can control each instance's startup. If you can tell me how to do this for a COM scenario where the instances are spawned automatically, I'm all ears!