Install4j - how to exit when "insufficient disk space" -


i use installation components screen, , have selected option insufficient disk space warning. works - warning when there's not enough disk space, , user presented prompt along lines of continue y/n...

the thing can't figure out how exit installer when select n. stands, when there's not enough disk space, , user selects n (to "not continue"), installer loops installation components selection again, , cycles through warning again - endless cycle.

there's no "quit on failure" option screen, how cancel install when user elects not continue since there's not enough disk space?

thanks....

there no way insert code there, loop goes can select installation directory more space. have created issue canceling added option in console mode.

to check condition beforehand, compare

systeminfo.getfreediskspace(context.getinstallationdirectory()) 

with

com.install4j.runtime.installer.helper.content.contentinstaller.     getinstance().getminsize() * 1.1 

(the above not in public api)

you can in run script action guarded util.isconsole(). returing false , setting failure strategy property of action "quit on failure" exit installer.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -