Creating two different installation projects, one of which is called Production Installation , and one of which is called Test Setup , may be the cleanest way, because it makes the OS believe that you are supplying two different products, which actually takes place here.
Moving to WiX, as you yourself suggested, really has the advantage that you can reuse components in your configuration projects, avoiding the need to maintain the same list of files twice, for example.
There is, of course, one more option. If your Production installation and your Test Setup projects are almost identical, and you just need to exchange some GUIDs (for example, product or package code to force MSI to consider them to be different), create a simple script that copies the first installation project file to a second location and exchanges the GUIDs in the file (which is nothing more than an XML file). Thus, you only need to save the first project file and easily restore the second one by restarting the script.
Personally, I do such things in VBS, but you can also use powershell to do this or write a simple tool in any language that can handle XML or RegEx.
source share