简体   繁体   中英

manual inputs embed in msi using wix

I would like to install a third party executable that expects some user inputs on a user machine.To this aim, I would like to make the installation silent.

Is there a way to achive using wix?

The most "correct" way would be to create a Bundle that used a Chain to install the ExePackage and your MsiPackage . You can control the inputs to the ExePackage via the InstallCommand attribute. The InstallCommand attribute can use Variable s from the Bundle by doing something like:

<ExePackage InstallCommand="[MyVariable] -someswitch"
            DetectCondition="DetectedThirdPartyInstalled"
            SourceFile="path\to\thirdparty.exe" />

If you really must try to install the executable during your .msi then you'll need to use a CustomAction and the ExeCommand attribute can pass parameters. That would look something like:

<CustomAction FileKey="FileIdForThirdPartyExe" ExeCommand="[MyProperty] -someswitch" />

Take a look in the WiX.chm for those key words for more other details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM