title: Error installing cab file on Windows CE
body: <p>I'm having trouble using macros in my .inf file that I'm using to create my cab, specifically when setting the <code>InstallDir</code> string.  If I do something like this:</p>
  
  <pre><code>InstallDir=\&lt;PathToProgramFiles&gt;\MyAppName
  </code></pre>
  
  <p>then everything works fine.  However, if I do this:</p>
  
  <pre><code>InstallDir=%CE1%\MyAppName
  </code></pre>
  
  <p>then I get the following error when trying to install the cab (double tapping it on my device): "MyAppName was not installed successfully.  Please run Setup again."</p>
  
  <p>This only seems to apply to the built-in macro strings.  I can use <code>%AppName%</code> without any problems.  Maybe there is some registry setting that isn't properly set that would normally resolve the <code>%CE1%</code> macro?</p>
  
  <p>Any ideas about what is going on?</p>
  
  <p>Edit: My device doesn't have a <code>\Program Files</code> directory.  It seems the <code>%CE1%</code> macro always resolves to that path and if the <code>InstallDir</code> specified in the inf file doesn't exist (with the exception of the last directory portion then the install fails.  Manually creating <code>\Program Files</code> fixed the issue.  Since a lot of the devices I'm working with have different paths for their Program Files directory, is there a generic way to get the installer to default to the actual Program Files dir?  I guess my only other option is to not specify a path and force the user to choose one?</p>