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

后端 未结 4 2181
悲&欢浪女
悲&欢浪女 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条回答
  •  自闭症患者
    2020-12-03 18:44

    As far as I'm concerned, you have to use [Code] section for that, run the files with Exec function, check ResultCode upon return and run your uninstall script.

提交回复
热议问题