title: admin level nsis installer needs to create icons for unprivileged user
body: <p>I need to create an NSIS installer, which runs with administrator privileges. I request these privileges with</p>
  
  <pre><code>RequestExecutionLevel admin
  </code></pre>
  
  <p>So far this works. But I also need to place shortcut links on the users desktop. I do NOT want to create the shortcuts for all users but only for the currently logged in user. So I use </p>
  
  <pre><code>SetShellVarContext current 
  </code></pre>
  
  <p>in the installer sections. If the current user has admin privileges, this works. If I have a normal user, Windows (7) asks for credentials for a privileged user, which is also correct. But the installer then creates the icons on the privileged users desktop, and not on current users. </p>
  
  <p>So, how can I tell NSIS, that it should create desktop icons for the current user if she has no admin privileges?</p>
  
  <p>FYI, if I omit both RequestExecutionLevel and SetShellVarContext, I am also prompted for administrative rights but the installer creates icons on the current user desktop as well as for the admin user. I think this is some kind of compatibility behavior.</p>