How to force Inno Setup setup to fail when Run command fails?

后端 未结 4 2191
悲&欢浪女
悲&欢浪女 2020-12-03 18:23

I have some commands in the [Run] section of my Inno Setup script. Right now, if any of them returns a failure code (non-zero return value), the setup continue

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 18:42

    You can use the AfterInstall flag in the Run section to trigger the execution of your program and catch the result code.

    See my answer here.

    Then according to the result code you can cancel the installation.

提交回复
热议问题