I have WIX creating a web site MSI. It puts everything in the correct directory
in wwwroot but does not create it as an application (virtual directory) under
the web site in IIS. The script is below.
Main.wxs
<Product
Id="*"
UpgradeCode="$(var.UPGRADECODE)"
Name="$(var.APPLICATIONNAME)"
Language="1033"
Version="$(var.INSTALLVERSION)"
Manufacturer="$(var.COMPANYNAME)">
......
<Property Id="IISROOT">
<RegistrySearch Id="IISROOT"
Type="directory"
Root="HKLM"
Key="Software\Microsoft\InetStp"
Name="PathWWWRoot" />
</Property>
<Condition Message="IIS does not appear to be installed correctly, the
root directory is not set.">
Installed OR IISROOT
</Condition>
......
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="IISROOT" Name="wwwroot">
...
</Directory>
<!--</Directory> -->
</Directory>
<Feature Id="ProductFeature"
Title="$(var.APPLICATIONNAME)"
Description="$(var.APPLICATIONNAME)"
Display="expand"
Level="1"
ConfigurableDirectory="INSTALLDIR">
.....
<!-- Include IIS set up content. -->
<ComponentGroupRef Id="ComponentGroupWeb" />
</Feature>
.....
</Product>
Web.wxs
<Fragment>
<ComponentGroup Id="ComponentGroupWeb">
<ComponentRef Id="WebSiteVirtualDir" />
</ComponentGroup>
<DirectoryRef Id="IISROOT">
<Component Id="WebSiteVirtualDir" Guid="$(var.VIRDIRGUID)">
<CreateFolder />
<iis:WebVirtualDir Id="VirtualDir" Alias="$(var.IISNAME)"
Directory="INSTALLDIR" WebSite="DefaultWebSite">
<iis:WebDirProperties Id="VirtDirProperties"
AnonymousAccess="Yes" BasicAuthentication="no" WindowsAuthentication="yes" />
<iis:WebApplication Id="WebApplication"
Name="$(var.IISNAME)" />
</iis:WebVirtualDir>
</Component>
</DirectoryRef>
</Fragment>
Kevin Bourne | Software Developer | Chase Paymentech
..
JPMorgan Chase & Co.
----------
Learn more about Chase Paymentech Solutions,LLC payment processing services at
www.chasepaymentech.com.
THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are
proprietary and confidential information intended only for the use of the
recipient(s) named above. If you are not the intended recipient, you may not
print, distribute, or copy this message or any attachments. If you have
received this communication in error, please notify the sender by return e-mail
and delete this message and any attachments from your computer.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users