Old 1st September 2011, 20:57   #1
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
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
code:
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 is offline   Reply With Quote
Old 1st September 2011, 21:08   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
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.
Yathosho is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
freeze, lockwindow, nsdialogs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump