Quote:
Originally Posted by Lord.Freddy
Hello everyone, I am trying to implement the function (SelectDisk) that is available in (InnoSetup) 6, so I wrote the code that is in the (zip) file below, but after execution
1: If I click on the (OK) button and if the requested file is not there, it should give me an error, but it ignores this.
2: If I click on the (cancel) button, it should show me the exit message box, but it ignores it.
I will be glad if someone can fix the problems of this code 
|
The functions "TNewDiskForm.OnCloseQuery " or "TNewDiskForm.OnClose" are called before returning a ShowModal value.
I recommend putting OnClick procedures for the "OK" and "Cancel" buttons and putting your functions there, then you can set the values of the global variable "ModalResult".