1

Is there a way to change the product code and name of msi (Project Setup) through a parameter something like TARGET DIR?

I need to install multiple version (DEV, QA, Stg and Prd) in same machine. So i run my msi in commandline.

C:\Installer\client.msi /qb /l* log.txt TargetDir="C:\Test\DEV" ProductCode={GUID1}" C:\Installer\client.msi /qb /l* log.txt TargetDir="C:\Test\QA" ProductCode={GUID2}" C:\Installer\client.msi /qb /l* log.txt TargetDir="C:\Test\STG" ProductCode={GUID3}" C:\Installer\client.msi /qb /l* log.txt TargetDir="C:\Test\PRD" ProductCode={GUID4}"

Current Problem:

Commands above are not working.

Olrac
  • 1,527
  • 2
  • 10
  • 22

1 Answers1

0

Instance Transform: I suppose the built-in way for this is the instance transform, but I am not particularly fond of this construct. Plenty of more information on this in the bolded link below.

Virtual Machines / Virtual Packages (App-V): The modern way to deal with multiple package uses could be to use test virtuals or virtual packages (App-V)? I find this to be the least complicated option packaging-wise. I would recommend it.

Preprocessor / Compiler Variables: If you are using WiX, you can try to use compiler variables to allow different versions of your MSI to be compiled from the same source file. Let me just add some links:


Some suggestions based on the above topics and a few more options here. These are Stackoverflow and Serverfault links, let me avoid too much duplication by linking (the essence is above):

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164