Skip to content
⌘ NSIS Forum Archive

LockWindow freezes installer

2 posts

Yathosho#

LockWindow freezes installer

i have created an installer with 2 nsDialog pages that i want to use LockWindow, this is the order of my pages
Page custom ioPage ioPageLeave
!define MUI_PAGE_CUSTOMFUNCTION_PRE ComponentsShow
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE ComponentsLeave
!insertmacro MUI_PAGE_COMPONENTS
Page custom io2Page io2PageLeave
!define MUI_PAGE_CUSTOMFUNCTION_SHOW InstfilesShow
the LockWindow works perfectly on the first nsDialogs page ioPage, where i use it to color the background of a control. on the second nsDialogs page io2Page it freezes the installer before showing the page.

i'm not sure why this happens as i did similar things with another installer. the problem persists when i remove the lockwindow code from the first nsDialog.

any ideas?
Yathosho#
found the problem:

LockWindow on must only be used once in the script, otherwise it will freeze the installer. i simply placed LockWindow off at the wrong position, so the GUI didn't react immediately.