I'm making some checks before the installation with a Custom Action. I want it that the installation will not start if these checks fail.
Is there a way to do this gracefully?
If your checks can not be done using Condition
element then in your Custom Action you should return ActionResult.Failure
if your checks fail or return ActionResult.Success
if the checks pass.
Returning Failure should cause your setup to go in RollBack mode and it will not progress any further. This will work if the Return
attribute of CustomAction element is set to check
which is the default.
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.