installation - How to run custom actions while running the MSI installer in silent mode -


i've created msi installer using installshield 2014. while running ui works fine when run in silent mode using below command custom actions not firing @ all:

c:\>msiexec /i "myapplication.msi" /qn weburl=http://localhost/mywebapp /log  out.txt 

weburl property required custom action. value of weburl passed c# class library method argument. c# method called custom action gets called when click on install button on begin installation wizard step. custom action gets executed i.e. i've kept condition execution of custom action 1 means executes under circumstances.

in log file see value of weburl property getting correctly set. i'm not able stopping custom action fire while running installer in silent mode?

update: suggested michael, after putting custom action in installexecutesequence starts getting executed in silent mode. problem starts getting executed twice in ui mode same action getting executed through button click on 1 of dialogs appears during installuisequence. want execute custom action putting installexecutesequence when i'm running installer in silent mode (so executes once if i'm in ui mode).

when run /qn, wizard not shown. entire installuisequence skipped. if want action run, should not invoke button click. when button isn't shown, cannot clicked.

instead find spot in installexecutesequence schedule it. (if have no other requirements, still want schedule sometime after costfinalize mirror non-silent case.) scheduling run action whether or not have ui.

however, runs whether installing or uninstalling, either alter condition or action take account. simplest approach may check whether installed property set; more robust check may verify install , action states of relevant component. latter can necessary if need conditionally in maintenance scenarios add or remove feature.

since mention need run during ui, have take steps. may able set msidbcustomactiontypefirstsequence scheduling option shown below.

enter image description here

or may have detect scenario, example checking uilevel, or setting , checking own property when action runs. may need split multiple entry points can tell ui immediate execute; there not appear runmode distinguishes two. (am forgetting property gets set?)


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -