title: How does clickonce installer installes prerequisites that are not mentioned on the prerequisites list
body: <p>I want to package DirectX 9 with my installer as it is necessary for my software to work.</p>
  
  <p>Can you please tell me how can i do that?</p>
  
  <p>I tried doing this thing. I went to the heading under prerequisite tab, download prerequisites from the following location and pasted the url for DirectX, which is <a href="http://download.microsoft.com/download/B/7/9/B79FC9D7-47B8-48B7-A75E-101DEBEB5AB4/directx_aug2009_redist.exe" rel="nofollow noreferrer">this</a>. </p>
  
  <p>When i published it, it gave me error:</p>
  
  <blockquote>
    <p>Cannot publish because a project failed to build.<br>
    Item 'Windows Installer 3.1' is required by '.NET Framework Client Profile', but was not included.  </p>
  </blockquote>
  
  <p>The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFx35Client\DotNetFx35ClientSetup.exe' in item '.NET Framework Client Profile' can not be located on disk. See Help for more information.</p>
  
  <p>I am working on my virtual machine which does not have .NET 3.5 so that my installer installs it itself if it's not in my machine.</p>