This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: custom parmeters pass to MSI
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 30, 2010
07:08 PM
custom parmeters pass to MSI
Is it possible to define custom parameters and pass them to an MSI to install certain features?
Thanks
Thanks
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2010
01:52 AM
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 01, 2010
01:17 PM
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?
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 03, 2010
04:19 AM
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"
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"