title: Windows-Installer using Installshield: how to match ALLUSERS setting with Env Vars
body: <p>I am making an MSI based installation package with Installshield Express 2011.</p>
  
  <p>I like to set the <code>ALLUSERS</code> field to <code>2</code>, which means that a per-machine installation is attempted but if that is not possible then a per-user installation is performed.</p>
  
  <p>But my package must also create some environment variables which have to be set as either System or User variables.  These do not seem to be affected by the <code>ALLUSERS</code> field, such that if a per-user installation is being performed then the installer may try to set a System environment variable which would be inappropriate/prohibited for a per-user installation.</p>
  
  <p>Is there way in Installshield to have the enviornment variables set according to whether it is a per-user or per-machine installation?</p>
  
  <p>One solution would be to have <code>ALLUSERS</code> set to <code>""</code> which would cause every installation to be per-user, however this is not suitable for small business environments where different staff may log on and expect to be able to use the product.</p>