How to build WiX so that it copies files based on where .msi is being installed? -
i have build .msi using wix gets deployed several environments. each env. has own config file. right now, build 1 msi per environment , want move away practice. there way build 1 msi intelligent copy specific files based on running?
once have decided target environment is, based on whatever characteristics define, can create discrete component each of config files want deploy per environment, , give each component condition evaluates true target environment, , false otherwise.
if environment change, need make component condition transitive repair\upgrade deploy correct config file.
one difficulty may face components supposed represent unique resources. looks have lots of different config files same name , destined same target folder. may find easier give config files different 'pseudo' names , use copyfile copy pseudo version terminal destination.
Comments
Post a Comment