Source

YouCantSpell / build / YouCantSpell.Installer.v70 / 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.0 ($(var.CoreAsmVersion))"
    Language="1033"
    Version="$(var.CoreAsmVersion)"
    Manufacturer="Aaron Dandy"
    UpgradeCode="d2068791-eb4f-4f37-bbec-40ef1078d028"
  >
		<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="d2068791-eb4f-4f37-bbec-40ef1078d028">
      <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="RESHARPERDIRV70" Secure="yes">
      <RegistrySearch Id="RSInstallRegistryV70" Root="HKLM" Key="Software\JetBrains\ReSharper\v7.0"
        Name="InstallDir" Type="directory"/>
    </Property>

    <Condition Message='ReSharper 7.0 is required to proceed with the installation.'>
      Installed OR (RESHARPERDIRV70)
    </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.0">
              <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="2F4B77AE-DD30-4755-8C10-7C6D8B84DC8B">
                    <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.0" Guid="{E6AB41AF-38AD-4917-BD85-FF9664F08FA0}">
                    <Registry Id="R.YouCantSpell.v7.0" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell" Name="ReSharperVer" Value="v7.0" Type="string" KeyPath="yes" />
                    <File Source="..\..\bin\$(var.Configuration)\net35\YouCantSpell.ReSharper.v70.dll" />
                  </Component>
                  <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell.Dic" Name="dic">
                    <Component Id="C.YCS.PerUser.Dic" Guid="{9D1A64A9-7B00-4121-9F4C-EF5C00F39FA5}">
                      <Registry Id="R.YouCantSpell.Dic" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell\Dic" KeyPath="yes" />
                      <File Source="..\..\dic\license_en_EN.txt" />
                      <File Source="..\..\dic\README_en_GB.txt" />
                      <File Source="..\..\dic\en_GB.aff" />
                      <File Source="..\..\dic\en_GB.dic" />
                      <File Source="..\..\dic\LICENSE_en_US.txt" />
                      <File Source="..\..\dic\README_en_US.txt" />
                      <File Source="..\..\dic\en_US.aff" />
                      <File Source="..\..\dic\en_US.dic" />
                      <File Source="..\..\dic\licentie_nl_NL.txt" />
                      <File Source="..\..\dic\nl_NL.aff" />
                      <File Source="..\..\dic\nl_NL.dic" />
                      <File Source="..\..\dic\copyright_russian-aot-ieyo.txt" />
                      <File Source="..\..\dic\russian-aot-ieyo.aff" />
                      <File Source="..\..\dic\russian-aot-ieyo.dic" />
                      <File Source="..\..\dic\LICENSE_sv_SE.txt" />
                      <File Source="..\..\dic\sv_SE.aff" />
                      <File Source="..\..\dic\sv_SE.dic" />
                      <File Source="..\..\dic\README_uk_UA.txt" />
                      <File Source="..\..\dic\uk_UA.aff" />
                      <File Source="..\..\dic\uk_UA.dic" />
                      <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.0"/>
      <ComponentRef Id="C.YCS.PerUser.Dic"/>
    </Feature>

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

  </Product>
</Wix>