title: InnoSetup: Generate Icons in Common/User Desktop based on values inside Installer
body: <p>We provide a custom Wizard page in our InnoSetup configuration that gives us an <code>InstallForAllUsers</code> variable. Based on the value of this variable, we want to place our icons in the appropriate places <code>Common Desktop</code>/<code>Common Startup</code> for All Users, and <code>User Desktop</code>/<code>User Startup</code> for Current User.</p>
  
  <p>Our Icons section looks like this:</p>
  
  <pre><code>[Icons]
  Name: "{group}\MyApp"; Filename: "{app}\MyApp.exe"; IconFilename: "{app}\MyApp.exe"
  Name: "{group}\{cm:UninstallProgram,MyApp}"; Filename: "{uninstallexe}"; IconFilename: E:\Continuous Integration\InnoSetup Files\icon.ico
  Name: "{commondesktop}\MyApp"; Filename: "{app}\MyApp.exe"; IconFilename: "{app}\MyApp.exe"
  Name: "{commonstartup}\MyApp"; Filename: "{app}\MyApp.exe"; IconFilename:  "{app}\MyApp.exe"
  </code></pre>
  
  <p>How can I leverage my <code>InstallForAllUsers</code> variable to replace these constants when necessary?</p>