changing the destination directory in multi-instance installation using InstanceId

79 Views Asked by At

how to change the destination directory of a component using the InstanceId in multi instance installation in Basic MSI project.

1

There are 1 best solutions below

2
On

Use a Type 51 set property custom action scheduled before CostInitialize to transform INSTALLDIR based on your company\product and instance ID. Make sure that all components either a) have keyfiles or b) have unique guids for each instance. Since b is such a pain in the rear I will typically go out of my way to have key files for all components even if that means things like an AppPoolComponent installs a apppool_readme.txt with nothing more then readme in it.