title: NSIS How do I unhide a section when something returns a specific value?
body: <p>I have an installer created using the HM NIS Edit. And I want to be able to unhide the section called VDF if my check finds out its not installed. And hide it when it's installed and also don't execute that embed installer.</p>
  
  <p>I hope I made myself clear.</p>
  
  <p>This is the function:</p>
  
  <pre><code>Function .onInit #Check's wether the installer is in your installation folder. onInit means that it checks for that even before the installer is initialized.
    ${If} ${FileExists} "$EXEDIR\VDF2012-17.0.22.8.Client.exe"
      MessageBox MB_OK "VDF found"
  
    ${Else}
      MessageBox MB_OK "The Visual DataFlex setup was not found in the installation folder. However the installation of $(^Name) will still continue."
  
    ${EndIf}
  </code></pre>