How to implement IIS / Website in WIX#

Apr 16, 2015 at 1:30 PM
Please can we have a sample to implement IIS / Website in WIX#.....
Apr 17, 2015 at 2:08 AM
Edited Apr 17, 2015 at 2:08 AM
The sample already exists. Have a look at <Wix# Samples>\IIS
Apr 18, 2015 at 4:21 AM
Jun 23, 2015 at 11:42 AM
Edited Jun 23, 2015 at 11: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 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>


im not able to achieve this as in it states WebVirtualDir as the child of website but in Wix# its different please help.
Jun 24, 2015 at 2:44 PM
Please help...
Jun 25, 2015 at 12:21 PM
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: 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.