Source

Resharper Spell Checker / ReSpeller.Installer / Setup.wxs

Full commit
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Product Id="2857ED7D-CBCA-492C-9FC2-3ED93534DF19"
    Name="ReSpeller for ReSharper 7.0"
    Language="1033"
    Version="2.0.1"
    UpgradeCode="A6DB0C4A-75BA-4EA4-8F9C-A9F89EDAFFF6"
    Manufacturer="Artem Bukhonov aka Nerzhul500">

    <Package Description="#Description"
      Comments="Comments"
      InstallerVersion="200"
      Compressed="yes"
      InstallScope="perUser"
      ShortNames="no" 
      AdminImage="no"/>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
    </InstallExecuteSequence>

    <Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>

<!--    <Icon Id="ProductIcon" SourceFile="icon.ico"/>-->
<!--    <Property Id="ARPPRODUCTICON">ProductIcon</Property>-->

    <Property Id="RESHARPERDIR2010" Secure="yes">
      <RegistrySearch Id="RSInstallRegistry2010" Root="HKLM" Key="Software\JetBrains\ReSharper\v7.0\vs10.0"
        Name="InstallDir" Type="directory"/>
    </Property>

    <Property Id="RESHARPERDIR2012" Secure="yes">
      <RegistrySearch Id="RSInstallRegistry2012" Root="HKLM" Key="Software\JetBrains\ReSharper\v7.0\vs11.0"
        Name="InstallDir" Type="directory"/>
    </Property>
    
    <Property Id="MSIUSEREALADMINDETECTION" Value="1" />

    <Condition Message='ReSharper 7.0 and Visual Studio 2010 or 2012 are required to proceed with the installation.'>
      Installed OR (RESHARPERDIR2010 OR RESHARPERDIR2012)
    </Condition>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="LocalAppDataFolder">
        <Directory Id="D.JetBrains" Name="JetBrains">
          <Directory Id="D.ReSharper" Name="ReSharper">
            <Directory Id="D.v7.0" Name="v7.0" >
              <Directory Id="D.Plugins" Name="Plugins">
                <Directory Id="D.ReSpeller" Name="ReSpeller">
                  <Component Id="C.ReSpellerLib" Guid="A870D545-4730-46ED-892B-0E39FBFF0AC1" Permanent="no">
                    <RegistryKey Action="none" Key="myKeyName" Root="HKCU" >
                      <RegistryValue Type="integer" Value="1" KeyPath="yes" />
                    </RegistryKey>
                    <File Source="..\target\release\ReSpeller.dll" Vital="yes"/>
                    <File Source="..\target\release\NHunspell.dll" Vital="yes"/>
                    <File Source="..\target\release\Hunspellx86.dll" Vital="yes"/>
                    <File Source="..\target\release\WPFToolkit.dll" Vital="yes"/>
                    <File Source="..\target\release\WPFToolkit.Extended.dll" Vital="yes"/>
                    <RemoveFolder Id="R.ReSpeller" On="uninstall" />
                    <RemoveFolder Id="R.JetBrains" Directory="D.JetBrains" On="uninstall" />
                    <RemoveFolder Id="R.ReSharper" Directory="D.ReSharper" On="uninstall" />
                    <RemoveFolder Id="R.v7.0" Directory="D.v7.0" On="uninstall" />
                    <RemoveFolder Id="R.Plugins" Directory="D.Plugins" On="uninstall" />
                  </Component>
                  <Directory Id="D.Dic" Name="dic">
                    <Component Id ="C.ReSpellerDic" Guid="1D8CD928-4DE6-420A-B35C-C9AE51A7139E" Permanent="no">
                      <RegistryKey Action="none" Key="myKeyName" Root="HKCU" >
                        <RegistryValue Type="integer" Value="1" KeyPath="yes" />
                      </RegistryKey>
                      <File Source="..\target\release\dic\en_US.aff" Vital="yes"/>
                      <File Source="..\target\release\dic\en_US.dic" Vital="yes"/>
                      <File Source="..\target\release\dic\en_US_custom.dic" Vital="yes"/>
                      <RemoveFolder Id="R.Dic" Directory="D.Dic" On="uninstall" />
                    </Component>
                  </Directory>
                </Directory>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </Directory>

    <Feature Id="Complete" Title="Everything" Description="Everything" Level="1">
      <ComponentRef Id="C.ReSpellerLib"/>
      <ComponentRef Id="C.ReSpellerDic"/>
    </Feature>
    <UI>
      <UIRef Id="WixUI_Minimal" />
    </UI>
  </Product>
</Wix>