title: How to Enable the disabled Next button in NSIS?
body: <p>In My custom page, I have disabled the next button while the page loading... Because there is some background process need to complete, until we cant go to the next page. So I have disable the next button using following code.</p>
  
  <pre><code>GetDlgItem $1 $HWNDPARENT 1 
  EnableWindow $1 0
  </code></pre>
  
  <p>But I want to enable the next button once background process completed. I have used the follwoing code to enable</p>
  
  <pre><code>GetDlgItem $1 $HWNDPARENT 1 
  EnableWindow $1 1
  </code></pre>
  
  <p>But it was not worked... cld u please suggest the mistake done by me or how achieve this in NSIS?</p>
  
  <p>Following is My Code</p>
  
  <pre><code>Function StartProgressPage
      ; Set dialog text:
      !insertmacro MUI_HEADER_TEXT "$(STARTPRGDIA_TITLE)" "$(STARTPRGDIA_SUBTITLE)"
  
      ; Display the page:
      !insertmacro MUI_INSTALLOPTIONS_DISPLAY "StartPrgDia"
  
      ;Disable Next Button
      GetDlgItem $0 $HWNDPARENT 1
      EnableWindow $0 0
  
      nsDialogs::Create 1018
      Pop $dialog
      nsDialogs::CreateControl "msctls_progress32" \
          ${DEFAULT_STYLES}|${PBS_SMOOTH} \
          ${PB_EXSTYLE} \
          0 30 100% 10% \
          "Test" \
  
      Pop $hwnd
      ${NSD_CreateTimer} NSD_Timer.CallStop 10
      nsDialogs::Show
  FunctionEnd
  
  Function NSD_Timer.CallStop
      ${NSD_KillTimer} NSD_Timer.CallStop ; Kill the timer
      SendMessage $hwnd ${PBM_SETRANGE32} 0 100
  
      SendMessage $hwnd ${PBM_SETPOS} 25 0
      Call &lt;Some Process&gt;
      SendMessage $hwnd ${PBM_SETPOS} 50 0
      Call ConfPropertyChanges
      SendMessage $hwnd ${PBM_SETPOS} 100 0
      ${NSD_CreateLabel} 0 10 20% 10u Completed
  
      ;Enable Next Button
      GetDlgItem $0 $HWNDPARENT 1
      EnableWindow $0 1
  FunctionEnd
  </code></pre>