title: How can I know if /D parameter was passed into NSIS-based installer
body: <p>Is there any flag or other option in NSIS to see that the default $INSTDIR variable was changed via /D parameter passed to the installer?</p>
  
  <p>I tried to do that:</p>
  
  <pre><code>1. setup.exe /D=C:\Temp
  2. ${GetParameters} $R0
  3. And see that $R0 is empty
  </code></pre>
  
  <p>Any advice?</p>