Add custom action of installing msi before the setup in installer project

后端 未结 2 493
陌清茗
陌清茗 2021-01-27 12:23

I am creating an installer project for one of my windows applications .

I want to make sure that an msi is installed first i.e. before the primary output is installed .

相关标签:
2条回答
  • 2021-01-27 13:07

    All Visual Studio custom actions run after all the files have been installed, so you cannot use a custom action to install another MSI before your primary output is installed. Also, running an MSI-based install from a custom action is likely to fail because concurrent MSI-based installs are not allowed.

    The normal way to do this is to create a bootstrapper package that installs dependencies before your MSI is installed, start here:

    https://msdn.microsoft.com/en-us/library/ms165429.aspx

    0 讨论(0)
  • 2021-01-27 13:10

    I found an associated article that i have used previously to package a dependency (which i did not want in the pre-requisites) on codeproject

    0 讨论(0)
提交回复
热议问题