-
Notifications
You must be signed in to change notification settings - Fork 20
Create a MSI with multiple instances
By default a MSI installer can installed only once. If you try to install a second instance then this is like an update and the previous installation will be removed. If you want create a multiple instances MSI installer with WIX toolset then it is very complicated.
With SetupBuilder this is very easy. You need only to set the count of possible instances:
msi {
multiInstanceCount = 100
}
This set the count of possible instance installations. The default value is 1. A limit is required because on creation time some GUIDs must be created.
The uninstaller in Programs and Features will be named like the installation directory. If the first instance is installed in the default location C:\Program Files\MyApp then the uninstaller is named MyApp
. If the second instance is installed in C:\Program Files\MyApp 2 then the uninstaller is named MyApp 2
.
If you need different naming rules then you need to set your own multiple instances script with:
msi {
multiInstanceScript = "${projectDir}/MultiInstance.vbs"
}
The default script can you use as basis.