问题
It is common practice in good GUI design to not use Yes-No-messageboxes but give the buttons real names, e.g. Save or Discard. How we can achieve this in messageboxes displayed with MsgBox in InnoSetup, at least for the ones we show in the code section?
回答1:
The MsgBox function uses internally the MessageBox Windows API function which allows you to use only a specific set of predefined buttons or button groups. What's worse, the buttons cannot be easily localized (without a hook like this). So, to have custom button texts you would need to use such hook and change the texts before showing your dialog, show the dialog and after that change them back to the common texts (because Inno Setup uses this dialog too).
Another, easier option would be making custom form.
来源:https://stackoverflow.com/questions/32097845/inno-setup-use-own-button-texts-on-messagebox