質問

how can I determine the project type before they try to install my package. I wanna show them a cancelation message if the project type is not and MVC application and cancel the installation process?

do I need to add a ps1 script file into tools folder of my package? if so, what should I write inside this script?

役に立ちましたか?

解決

Currently it seems that pre-installation checks for aborting the install is not possible. See the answer from David Fowler here.

Scott Hanselman has an example on how to check pre-requisites using the install.ps1 script. He also mentions that it's currently not possible to stop the installation process, but that "In the future there will likely be a pre-install or a dependency check".

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top