Avoid restart prompt in Inno Setup
问题 I am using restartreplace flag to replace the locked file, so it will prompt a message at the end of the installation to restart the machine. But I don't want to display it, and it should be set to restart later by default. Is there any way? 回答1: You can hide Yes/No restart radio buttons. And update the screen text accordingly. procedure CurPageChanged(CurPageID: Integer); var S: string; begin if CurPageID = wpFinished then begin WizardForm.YesRadio.Visible := False; WizardForm.NoRadio