WiX: returning a value from exepackage -


i have been asked add function existing wix package. specifically, need run small c# application , return single int wix conditionally control further actions. can see exepackage help there exitcode, enumeration of success, error, schedulereboot or forcereboot.

i have googled quite bit , wondering if missing point. can implement c# process internally within wix user provide information need, existing package has custom exepackages written in c# particular style, i'd stay if can. (the existing packages don't return needed values)

can this, or need try , operate entirely within wix?

for reference, 1 of existing packages looks this:

<exepackage     sourcefile="..."     displayname="license key"     installsize="0"     permanent="yes"     installcommand="/ignoreiflicensed"     repaircommand="/ignore"     uninstallcommand="/ignore" /> 

the reference <exepackage ...> implies want condition operate in wix bundle. in scenario think options limited , can map return value of exepackage global behaviour forcereboot.

do have <msipackage...> references? if have, move conditional behaviour inside each <msipackage...> using custom action call exe , set property. property can used condition in each <component...> want conditionally install. see using wix custom action set property's value more information on custom actions setting properties.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -