title: Inno Setup (How to get dynamically path to file)?
body: <p>I'm making a setup script in Inno and I was wondering, how can I get non "hardcoded" path. Here is example:</p>
  
  <p><img src="https://i.stack.imgur.com/XN4qV.png" alt="Image, which contains patch source"></p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>SOLUTION:</strong></p>
  
  <p>You can get .iss folder by using predefined variable </p>
  
  <blockquote>
    <p>SourcePath</p>
  </blockquote>
  
  <p>Usage would be like: {#SourcePath}\???\bin\x86\Release\???.exe</p>
  
  <p>Thanks all who contributed!</p>