64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
|
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
|
|
<Product Id="*"
|
|
Name="Tommy"
|
|
Language="1033"
|
|
Version="1.0.0"
|
|
Manufacturer="Tommy"
|
|
UpgradeCode="{aba1c34e-39c6-47cf-b50a-cae4e77f8204}">
|
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
|
|
|
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
|
|
|
|
<!-- Allows our MSI to automatically uninstall any previously installed versions (makes it play nicer with puppet) -->
|
|
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
|
|
<!-- Upgrade id has to match our upgrade code -->
|
|
<Upgrade Id="{aba1c34e-39c6-47cf-b50a-cae4e77f8204}">
|
|
<UpgradeVersion
|
|
Minimum="0.0.0.1" Maximum="99.0.0.0"
|
|
Property="PREVIOUSVERSIONINSTALLED"
|
|
IncludeMinimum="yes" IncludeMaximum="no" />
|
|
</Upgrade>
|
|
<!--
|
|
We need to be able to uninstall a newer version from an older version.
|
|
The default reinstallmode is "omus", of which the 'o' means "reinstall if missing or older"
|
|
The 'd' means "reinstall if different". This ensures that, at the individual component level, rollbacks work correctly.
|
|
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa371182(v=vs.85).aspx
|
|
-->
|
|
<Property Id="REINSTALLMODE" Value="dmus" />
|
|
|
|
<Feature Id="TommyWebsite" Title="TommyWebConfig">
|
|
<ComponentGroupRef Id="web_files" />
|
|
<ComponentRef Id='WebsiteConfig' />
|
|
</Feature>
|
|
</Product>
|
|
|
|
<Fragment>
|
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
<Directory Id="IISMain" Name='inetpub'>
|
|
<Directory Id="MainFolder" Name="Main">
|
|
<Directory Id="INSTALLFOLDER" Name="Tommy">
|
|
<Directory Id="Install_Web" Name="Web">
|
|
<Component Id='WebsiteConfig' Guid='{890bad01-9211-45b6-b3d0-98cb249a8e7c}' Win64="yes">
|
|
<iis:WebSite Id='Tommy' Description='Tommy' Directory='Install_Web' StartOnInstall='yes' ConfigureIfExists='yes' AutoStart='yes'>
|
|
<iis:WebAddress Id='TommyWildcard' Port='80' Header='*' />
|
|
<iis:WebApplication Id='TommyApp' WebAppPool='TommyAppPool' Name='Tommy' />
|
|
</iis:WebSite>
|
|
<iis:WebAppPool Id='TommyAppPool' Identity="localSystem" RecycleMinutes="0" IdleTimeout="0" ManagedPipelineMode='Integrated' ManagedRuntimeVersion='v4.0' Name='Tommy' />
|
|
</Component>
|
|
</Directory>
|
|
</Directory>
|
|
</Directory>
|
|
</Directory>
|
|
</Directory>
|
|
</Fragment>
|
|
|
|
|
|
<Fragment>
|
|
<InstallExecuteSequence>
|
|
<RemoveExistingProducts After="InstallInitialize" />
|
|
</InstallExecuteSequence>
|
|
</Fragment>
|
|
</Wix>
|