How to disable Disk Space Warning message in Inno Setup? -


i creating installer using inno setup. have calculated available disk space using function getspaceondisk. displaying error message if available disk space not enough, , installer not continue.

but before error message displays, inno setup disk space warning shown yes/no option. how can disable warning?

you cannot disable check, nor change buttons.


what can do, revert meaning of question in message overriding default text using [messages] section, like:

do want cancel installation?

if user presses no, installer stays on select destination location page. if user presses yes, nextbuttonclick(wpselectdir) gets called. there repeat check disk space (to distinguish call basic scenario, no warning), , if there's not enough space, abort installer forcefully.

[messages] diskspacewarning=setup requires @ least %1 kb of free space install, selected drive has %2 kb available.%n%ndo want cancel installation?  [code]  function notenoughspace: boolean; begin   result := { check disk space }; end;  procedure exitprocess(exitcode:integer);   external 'exitprocess@kernel32.dll stdcall';  function nextbuttonclick(curpageid: integer): boolean; begin   if curpageid = wpselectdir   begin     if notenoughspace     begin       exitprocess(0);     end;    end;   result := true; end; 

the ultimate solution re-implement select destination location page. it's not difficult. it's 1 edit box , 1 button.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -