binary - WiX - how to create bin subdirectory? -


i'm missing obvious. how put .dll's in subdirectory called "bin" under install directory? i'm trying follow tutorial: http://www.tramontana.co.hu/wix/lesson5.php#5.3 deploy wcf web service. need copy .svc files , .bin files, along few other, starting these two. i'm using wix 3.5 under visual studio.

    <directory id="targetdir" name="sourcedir">         <directory id="programfilesfolder">             <directory id="installlocation" name="tfbic.rct.wcfwebserviceswixsetup">                 <component id="productcomponent" guid="e9a375fb-df6a-4806-8b0b-03be4a50802f">                      <file id='svc1' name='createupdatereturnservice.svc' diskid='1' source='../tfbic.rct.wcfwebservices/createupdatereturnservice.svc'  />                 </component>             </directory>             <directory id="installlocation" name="tfbic.rct.wcfwebserviceswixsetup">                 <component id="productcomponent" guid="e9a375fb-df6a-4806-8b0b-03be4a50802f">                     <file id='dll1' name='tfbic.rct.wcfwebservices.dll' diskid='1' source='../tfbic.rct.wcfwebservices/bin/tfbic.rct.wcfwebservices.dll'  />                 </component>             </directory>         </directory>         <component id='testwebvirtualdircomponent' guid='9586807e-9065-48e8-8e73-13a9191962e5'>             <iis:webvirtualdir id='testwebvirtualdir' alias='test' directory='installdir'               website='defaultwebsite'>                 <iis:webapplication id='testwebapplication' name='test' />             </iis:webvirtualdir>         </component>      </directory> 

i tried putting \bin on id , name attribute, , didn't either (invalid character).

also, iis, best practice install in c:\program files, or in c:\inetpub\wwwroot? how switch default directory c:\inetpub\wwwroot\myproj?

these various first experiments wix.

each tag creates new directory. each nested tag, there's new directory. so, if want have "bin" under installlocation, use below.

<directory id="installlocation" name="tfbic.rct.wcfwebserviceswixsetup">      <directory id="binfolder" name="bin">          <component id="productcomponent" guid="e9a375fb-df6a-4806-8b0b-03be4a50802f">               <file id='svc1' name='createupdatereturnservice.svc' diskid='1' source='../tfbic.rct.wcfwebservices/createupdatereturnservice.svc'  />          </component>       </directory>   </directory> 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -