YouCantSpell / build / YouCantSpell.Installer.v71 / Product.wxs

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Product
    Id="*"
    Name="You Can't Spell For ReSharper 7.1 ($(var.CoreAsmVersion))"
    Language="1033"
    Version="$(var.CoreAsmVersion)"
    Manufacturer="Aaron Dandy"
    UpgradeCode="F412B889-7C45-4EAC-9CF0-9A32E55144F3"
  >
		<Package
      Description="A ReSharper Spell Check Plug-in."
      InstallerVersion="200"
      Compressed="yes"
      InstallScope="perUser"
    />

    <Property Id="MSIFASTINSTALL" Value="7" />
    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
    <Upgrade Id="F412B889-7C45-4EAC-9CF0-9A32E55144F3">
      <UpgradeVersion Minimum="0.0.1"
							IncludeMinimum="yes"
							Maximum="3.0.0"
							IncludeMaximum="no"
							Property="PREVIOUSVERSIONSINSTALLED" />
    </Upgrade>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
    </InstallExecuteSequence>
    
		<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high" />

    <Property Id="RESHARPERDIRV71" Secure="yes">
      <RegistrySearch Id="RSInstallRegistryV71" Root="HKLM" Key="Software\JetBrains\ReSharper\v7.1"
        Name="InstallDir" Type="directory"/>
    </Property>

    <Condition Message='ReSharper 7.1 is required to proceed with the installation.'>
      Installed OR (RESHARPERDIRV71)
    </Condition>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="LocalAppDataFolder">
        <Directory Id="D.AppDataFolder.JetBrains" Name="JetBrains" >
          <Directory Id="D.AppDataFolder.JetBrains.ReSharper" Name="ReSharper">
            <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V" Name="v7.1">
              <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V.Plugins" Name="Plugins">
                <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell" Name="YouCantSpell">
                  <Component Id="C.YCS.PerUser" Guid="{FFA645B9-F6D7-4408-A0A5-1790255EA8A2}">
                    <Registry Id="R.YouCantSpell" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell" KeyPath="yes" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\YouCantSpell.ReSharper.Core.dll" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\YouCantSpell.Core.dll" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\NHunspell.dll" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\Hunspellx86.dll" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\Hunspellx64.dll" />
                    <File Source="..\..\NHunspell-License.txt" />
                    <File Source="..\..\LICENSE.txt" />
                    <RemoveFolder Id="Rem.Root" Directory="D.AppDataFolder.JetBrains" On="uninstall"/>
                    <RemoveFolder Id="Rem.Root.R" Directory="D.AppDataFolder.JetBrains.ReSharper" On="uninstall"/>
                    <RemoveFolder Id="Rem.Root.R.V" Directory="D.AppDataFolder.JetBrains.ReSharper.V" On="uninstall"/>
                    <RemoveFolder Id="Rem.Root.R.V.P" Directory="D.AppDataFolder.JetBrains.ReSharper.V.Plugins" On="uninstall"/>
                    <RemoveFolder Id="Rem.Root.R.V.P.YCS" Directory="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell" On="uninstall"/>
                  </Component>
                  <Component Id="C.YCS.PerUser.v7.1" Guid="{EB103784-4C17-4EA5-9B6D-28096F0EB6D7}">
                    <Registry Id="R.YouCantSpell.v7.1" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell" Name="ReSharperVer" Value="v7.1" Type="string" KeyPath="yes" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\YouCantSpell.ReSharper.v71.dll" />
                  </Component>
                  <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell.Dic" Name="dic">
                    <Component Id="C.YCS.PerUser.Dic" Guid="{FC0F2D0E-490D-4FD7-92F7-3903155405EF}">
                      <Registry Id="R.YouCantSpell.Dic" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell\Dic" KeyPath="yes" />
                      <File Source="..\..\dic\en_US.dic" />
                      <File Source="..\..\dic\en_US.aff" />
                      <File Source="..\..\dic\README_en_US.txt" />
                      <RemoveFolder Id="Rem.Root.R.V.P.YCS.Dic" Directory="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell.Dic" On="uninstall"/>
                    </Component>
                  </Directory>
                </Directory>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </Directory>

    <Feature Id="YCSFeature" Title="You Can't Spell" Level="1">
      <ComponentRef Id="C.YCS.PerUser"/>
      <ComponentRef Id="C.YCS.PerUser.v7.1"/>
      <ComponentRef Id="C.YCS.PerUser.Dic"/>
    </Feature>

    <WixVariable Id="WixUILicenseRtf" Value="..\..\LICENSE.RTF" />
    <UI>
      <UIRef Id="WixUI_Minimal" />
    </UI>

  </Product>
</Wix>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.