vRock67
16th September 2011 16:50 UTC
custom key functionality
How can you make some function run when a keyboard button is pressed in nsis setup.
For example: I don't want setup(made of NSIS) to quit when esc button is pressed, Instead i want to run some function.
Please help me ASAP.
Thank you in advance.
vRock67
19th September 2011 06:40 UTC
any idea?
T.Slappy
19th September 2011 11:31 UTC
You need to recompile NSIS from sources - find keys behaviour routine and change it to your needs.
vRock67
22nd September 2011 06:48 UTC
there must be some other way ... is there?
MSG
22nd September 2011 07:00 UTC
Well maybe you could create a plugin that can handle this, but... that's about it, I'm afraid.
vRock67
11th October 2011 14:30 UTC
any idea of where to edit in the source code?
LoRd_MuldeR
11th October 2011 14:56 UTC
There is an easier way to prevent the abortion of the installer when the ESC key (or the "X" button) is pressed:
!define MUI_ABORTWARNING
(This of course will only work when your installer is using Modern UI. Otherwise write your own .onUserAbort function)