Archive: modify page at runtime


modify page at runtime
i want to set "readOnly" MUI_PAGE_DIRECTORY page if my application is already installed.

i need your suggestion please!


GetDlgItem and EnableWindow, just like here: http://forums.winamp.com/showthread....68#post1255868


it is perfect!
Thank you very much


As showed in the previous post here the solution:

!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckAlreadyInstalled
!insertmacro MUI_PAGE_DIRECTORY


Function CheckAlreadyInstalled

ReadRegStr $0 HKLM "Software\...\..." ''
StrLen $R1 $0

${If} $R1 > 0
FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $R1 $R0 1019
EnableWindow $R1 0
FindWindow $R0 "#32770" "" $HWNDPARENT
GetDlgItem $R1 $R0 1001
EnableWindow $R1 0
${EndIf}
FunctionEnd