1. I'm trying to hide the finish page run text box (added with !define MUI_FINISHPAGE_RUN)
2. This check box is defined for both Install and uninstall finish pages
3. This is how i try to do that (within the finish page show page call back)
;Find the internal window in the finish page
FindWindow $5 "#32770" "" $HWNDPARENT
;Get the check box handle
GetDlgItem $3 $5 "1203" ; 1203 - control id
;uncheck it
SendMessage $3 ${WM_LBUTTONDOWN} 0 0
SendMessage $3 ${WM_LBUTTONUP} 0 0 ;
;Hide the window
ShowWindow $3 ${SW_HIDE}
4. The problem is that this is not working always
For example:
- If i display only the welcome and finish pages - it works
- If I add any other page (say Install files page) it doesn't work.
Debugging using dumpstate and WinSpy++ I can see that in the second case the code line
FindWindow $5 "#32770" "" $HWNDPARENT
does not return the handle to the internal window but rather to another window I can not recognize - thus the check box is not found and the all thing does not succeed
Any idea why?
5. Also I read in the thread forums.winamp.com/showthread.php?postid=1364382 about the $MUI_HWND that is supposed to hold the internal windows handle. but this one is not populated for me.
Ideas please?
Tx
Jammusi