• How do you determine that prerequisites are met before allowing the packages to install?

  • How do you stop the installation if conditions are not met?

Looking for an improved experience through the Installation Wizard. Obviously all of this could be checked by something like SPE.


Would the use of the event packageinstall:starting be a good option? Perhaps make SPE run a script on this and then bail out of the installation when certain conditions are not met.

Update 2

I discovered that in SPE I can add an event subscriber in the config and then a script to go along with it. Throwing an error in the script causes the installation to stop. Unfortunately no decent errors are shown to the user.


Update 3

Apparently the installer events call JobContext to show dialogs. Either with SPE or some other previously installed module, you could achieve the desired behavior.

Working dialog

With some form of configuration you could have the Prerequisite Checker validate information before the installation completes.

Config Settings

  • 2
    The problem with the packageinstall:starting is it kicks off before anything from the package has been deployed, so what code would you be running? You could use SPE, but you can't guarantee SPE is installed... and even if it is then your package would need to an additional "prerequisites" file that SPE could extract and parse. I don't think there is a generic way to solve this.
    – jammykam
    Commented Nov 7, 2017 at 3:53
  • So would need to create a new module called Prerequisite Checker that is installed immediately after a vanilla instance and use some kind of DSL to provide instructions. Commented Nov 7, 2017 at 4:26

1 Answer 1


A Sitecore module installation package do not have any pre-installation steps. Thus, you cannot programmatically check for prerequisites. What I usually do is use the <Readme></Readme> section of the XML package definition file to document any prerequisites. This text is displayed in the installation wizard before the installation begins. The user can cancel the installation at this point to install any missing prerequisites.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.