How to implement IIS / Website in WIX#

Apr 16, 2015 at 12:30 PM
Please can we have a sample to implement IIS / Website in WIX#.....
Coordinator
Apr 17, 2015 at 1:08 AM
Edited Apr 17, 2015 at 1:08 AM
The sample already exists. Have a look at <Wix# Samples>\IIS
Apr 18, 2015 at 3:21 AM
Thanks
Jun 23, 2015 at 10:42 AM
Edited Jun 23, 2015 at 10:47 AM
How to achieve this through Wix#?
<DirectoryRef Id="INSTALLFOLDER">

  <Component Id="DemoWebsiteAppPool" Guid="" KeyPath="yes">
    <iis:WebAppPool Id="DemoWebsiteAppPool" Name="DemoWebsite" Identity="applicationPoolIdentity" ManagedPipelineMode="Integrated" ManagedRuntimeVersion="v4.0" />
  </Component>

    <Component Id="InstallWebsite" Guid="" KeyPath="yes">
        <!-- Install to default web site -->
        <iis:WebSite Id="DemoWebsiteWebsite" Description='Demo Website' Directory='INSTALLFOLDER' AutoStart='yes' StartOnInstall='yes'>
          <iis:WebAddress Id="AllUnassigned" Port="80" />
          <iis:WebApplication Id="DemoWebsiteApplication" Name="[DemoWebsiteWebsite][WEBSITE_ID]" WebAppPool="DemoWebsiteAppPool"></iis:WebApplication>
        </iis:WebSite>
      </Component>


</DirectoryRef>




im not able to achieve this as in
http://wixtoolset.org/documentation/manual/v3/xsd/iis/website.html it states WebVirtualDir as the child of website but in Wix# its different please help.
Jun 24, 2015 at 1:44 PM
Please help...
Coordinator
Jun 25, 2015 at 11:21 AM
The sample "setup_2.cs" yields wxs very similar to yours. It is not included into release so you need to download it from codeplex:
https://wixsharp.codeplex.com/SourceControl/latest#src/WixSharp.Samples/Wix# Samples/IIS/ASP.NETApp/setup_2.cs

Drop the file into your [Wix# Samples]/IIS/ASP.NETApp folder and you will be able to execute it.