cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
grparsec
Level 7

custom parmeters pass to MSI

Is it possible to define custom parameters and pass them to an MSI to install certain features?

Thanks
Labels (1)
0 Kudos
(3) Replies
Rouslan
Level 4

Just pass globalproperties during calling your msi:

msiexec.exe /i mymsi.msi /qb GLOBALPROPERTY=1

And setup related with property feature condition to: GLOBALPROPERTY="1"
(Your feature will be installed only if value of the property is "1").

Another way is using INSTALLLEVEL property. Each feature has own installlevel (see feature attributes). Feature will be installed only if global property INSTALLLEVEL > own install level
0 Kudos
grparsec
Level 7

Thanks for the reply. My features are mutualy exclusive, so I think I cannot use INSTALLLEVEL here (please correct me if I'm wrong). All my setup does is to create a database and run a few sql querries.
Imagine that I have link1 and link2 on a page. If the user clicks on link1 I want databaseA to get created and if they click on link2 I want databaseB to get created. I don't want it to be a silent install. Can I somehow pass the ADDLOCAL property to my setup in the command line?
0 Kudos
Rouslan
Level 4

Just delete "/qb"

Link1: mymsi.msi DATABASETYPE=1
Link2: mymsi.msi DATABASETYPE=2

Feature databaseA contains files for Database A
Feature databaseB contains files for Database B

Feature databaseA condition should be DATABASETYPE="1"
Feature databaseB condition should be DATABASETYPE="2"
0 Kudos