title: Install file conditionally through msi (Internal Error 2732)
body: <p>I want to install a plugins dll to a pre-installed application. Pre-installed application has its installed location in registry from where I can get its location. If I cannot found the registry. I simply don't want to install the plugin file. I am using Wise Installation express 7.4.0.214.</p>
  
  <p>What I have done is put a System search on the registry and I get the installed location of program for which I want to ship the plugin</p>
  
  <p>I have created a entry in Directory table by name "PluginDir" whoes Directory_parent is set to "" and DefaultDir to "."</p>
  
  <p>In MSI script I have wriiten the script on Execute Immediate tab</p>
  
  <pre><code>REM Display the message fetched from the registry 
  Display Message [InstalledDir]  
  
  Set Directory PluginDir to [InstalledDir]Plugin\
  </code></pre>
  
  <p>The message box show the correct fetched path but as soon as it cone to Set directory it shows “Internal Error 2732. 0”</p>
  
  <p>But when I comment set directory Msi run withot error. I am not getting what I am doing wrong. </p>