A quick way would be to have the different files copied to a globally accessible location e.g. somewhere in the 'All Users' profile, using different names. Each file would need to be in a separate component with a condition set. How you differentiate between departments is unknown to us but you would detect that somehow and use the detection to set a public property named, say DEPT_NAME with a value. Your condition would then read DEPT_NAME=FINANCE or DEPT_NAME=OPS. Then use the DuplicateFile table to copy the relevant file to its proper location.
Not quite. You'd need to specify the public property - whatever you decided to name it - and its value on the command line. The condition set on the component, along with the entry in the DuplicateFile table, would copy the relevant file to its target folder:
MSIExec /i "%~dp0whatever.MSI" DEPT_NAME=FINANCE [other command-line arguments, e.g. logging]
I would recommend one MSI and 4 MSTs, one for each department putting the correct file for each dept.
Or, one MSI, 4 files (dept1, dept2, etc.) then a batch file for each dept, that would first copy the dept1 file as deptest.config, then install the MSI.
The particularly Gucci way of doing this would be to have one MSI, one MST. The MST would contain 4 components conditionalised, ideally, a method of doing an AppSearch, to detect something on your machine that defines it as dept 1 or dept3 (reg key, env var etc.)
However, I think you are going to be stuck with actually defining that yourself. which would mean either 4 different commandline arguments (to provide the info to make the condition TRUE) or, 4 MSTs each one installing the appropriate file for the dept that you define.
By continuing to use this site and/or clicking the "Accept" button you are providing consent
Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our
websites or when you do business with us. For more information about our
efforts, please visit