Skip to main content
added 467 characters in body
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
  • 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.

Update

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.

Sample

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

  • 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.

Update

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.

Sample

  • 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.

Update

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.

Sample

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

Added screenshot.
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
  • 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.

Update

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.

Sample

  • 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.

Update

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.

  • 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.

Update

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.

Sample

added 201 characters in body
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
  • 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.

Update

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.

  • 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.

  • 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.

Update

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.

Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
Loading