Exit from Inno Setup installation from [Code]

后端 未结 6 2057
逝去的感伤
逝去的感伤 2020-12-01 21:37

Is it possible to exit the installation from a function in the [Code] section of an installer created with Inno Setup?

I\'m not interested in setting the

6条回答
  •  醉酒成梦
    2020-12-01 22:02

    Somewhere in your code section you perform a check. Right? As result of that check you want to exit the installation. To perform the exit put the line:

    PostMessage (WizardForm.Handle, $0010, 0, 0);  { quit setup, $0010=WM_CLOSE }
    

    Hopefully this helps

提交回复
热议问题