1. aarondandy
  2. YouCantSpell

Commits

Markus Hastreiter  committed 915bfa6

Added installer project for ReSharper 8.0

  • Participants
  • Parent commits aeec191
  • Branches default

Comments (0)

Files changed (2)

File build/YouCantSpell.Installer.v80/Product.wxs

View file
+<?xml version="1.0" encoding="UTF-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+
+  <?define UpgradeCode="AC2F1D22-1B8A-479D-A009-FA46D82C2847"?>
+  <?define Manufacturer="Aaron Dandy"?>
+  
+  <Product
+    Id="*"
+    Name="You Can't Spell For ReSharper 8.0 ($(var.CoreAsmVersion))"
+    Language="1033"
+    Version="$(var.CoreAsmVersion)"
+    Manufacturer="$(var.Manufacturer)"
+    UpgradeCode="$(var.UpgradeCode)"
+  >
+    <Package
+  Description="A ReSharper Spell Check Plug-in."
+  InstallerVersion="200"
+  Compressed="yes"
+  InstallScope="perUser"
+  Manufacturer="$(var.Manufacturer)"
+    />
+
+    <MajorUpgrade DowngradeErrorMessage="Newer version detected." AllowSameVersionUpgrades="yes" />
+
+    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" CompressionLevel="high" />
+
+    <Property Id="RESHARPERDIRV80" Secure="yes">
+        <RegistrySearch Id="RSInstallRegistryV80" Root="HKLM" Key="Software\JetBrains\ReSharper\v8.0"
+          Name="InstallDir" Type="directory"/>
+      </Property>
+
+      <Condition Message='ReSharper 8.0 is required to proceed with the installation.'>
+        Installed OR (RESHARPERDIRV80)
+      </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="v8.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="{D51429DA-39EF-4C11-A4EF-4CC894005B64}">
+                      <Registry Id="R.YouCantSpell" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell" KeyPath="yes" />
+                      <File Source="..\..\bin\$(var.Configuration)\YouCantSpell.ReSharper.Core.dll" />
+                      <File Source="..\..\bin\$(var.Configuration)\YouCantSpell.Core.dll" />
+                      <File Source="..\..\bin\$(var.Configuration)\NHunspell.dll" />
+                      <File Source="..\..\bin\$(var.Configuration)\Hunspellx86.dll" />
+                      <File Source="..\..\bin\$(var.Configuration)\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.v8.0" Guid="{B6D47ECA-3184-40A0-A40D-4B8E22A0A00A}">
+                      <Registry Id="R.YouCantSpell.v8.0" Root="HKCU" Key="Software\JetBrains\ReSharper\Plugins\YouCantSpell" Name="ReSharperVer" Value="v8.0" Type="string" KeyPath="yes" />
+                      <File Source="..\..\bin\$(var.Configuration)\YouCantSpell.ReSharper.v80.dll" />
+                    </Component>
+                    <Directory Id="D.AppDataFolder.JetBrains.ReSharper.V.Plugins.YouCantSpell.Dic" Name="dic">
+                      <Component Id="C.YCS.PerUser.Dic" Guid="{A44F9120-0C7D-4685-9741-158F579B786D}">
+                        <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" />
+                        <File Source="..\..\dic\COPYING_GPLv2_de_DE_frami.txt" />
+                        <File Source="..\..\dic\COPYING_GPLv3_de_DE_frami.txt" />
+                        <File Source="..\..\dic\COPYING_OASIS_de_DE_frami.txt" />
+                        <File Source="..\..\dic\de_DE_frami.aff" />
+                        <File Source="..\..\dic\de_DE_frami.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.v8.0"/>
+        <ComponentRef Id="C.YCS.PerUser.Dic"/>
+      </Feature>
+
+      <WixVariable Id="WixUILicenseRtf" Value="..\..\LICENSE.RTF" />
+      <UI>
+        <UIRef Id="WixUI_Minimal" />
+      </UI>
+    </Product>
+</Wix>

File build/YouCantSpell.Installer.v80/YouCantSpell.Installer.v80.wixproj

View file
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+    <ProductVersion>3.8</ProductVersion>
+    <ProjectGuid>FC346A0D-DED7-4E66-A743-A4910736B76A</ProjectGuid>
+    <SchemaVersion>2.0</SchemaVersion>
+    <OutputName>YouCantSpell For ReSharper 8.0</OutputName>
+    <OutputType>Package</OutputType>
+    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+    <WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+    <OutputPath>..\..\bin\installer\$(Configuration)\</OutputPath>
+    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+    <DefineConstants>Debug</DefineConstants>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+    <OutputPath>..\..\bin\installer\$(Configuration)\</OutputPath>
+    <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
+  </PropertyGroup>
+  <UsingTask TaskName="GetCoreVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
+    <ParameterGroup>
+      <BuildConfiguration ParameterType="System.String" Required="True" />
+      <CoreAsmVersion ParameterType="System.String" Output="true" />
+    </ParameterGroup>
+    <Task>
+      <Reference Include="System.Xml" />
+      <Using Namespace="System" />
+      <Using Namespace="System.IO" />
+      <Using Namespace="System.Reflection" />
+      <Code Type="Fragment" Language="cs">
+        <![CDATA[
+var filePath = Path.GetFullPath(@"..\..\bin\" + BuildConfiguration + @"\YouCantSpell.Core.dll");
+CoreAsmVersion = AssemblyName.GetAssemblyName(filePath).Version.ToString();
+]]>
+      </Code>
+    </Task>
+  </UsingTask>
+  <ItemGroup>
+    <Compile Include="Product.wxs" />
+  </ItemGroup>
+  <ItemGroup>
+    <WixExtension Include="WixUIExtension">
+      <HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
+      <Name>WixUIExtension</Name>
+    </WixExtension>
+  </ItemGroup>
+  <Import Project="$(WixTargetsPath)" />
+  <!--
+	To modify your build process, add your task inside one of the targets below and uncomment it.
+	Other similar extension points exist, see Wix.targets.
+  -->
+  <Target Name="BeforeBuild">
+    <GetCoreVersion BuildConfiguration="$(Configuration)">
+      <Output PropertyName="CoreAsmVersion" TaskParameter="CoreAsmVersion" />
+    </GetCoreVersion>
+    <PropertyGroup>
+      <DefineConstants>$(DefineConstants);CoreAsmVersion=$(CoreAsmVersion)</DefineConstants>
+      <TargetName>$(TargetName) v$(CoreAsmVersion)</TargetName>
+      <TargetFileName>$(TargetName).msi</TargetFileName>
+      <TargetPath>$(TargetDir)$(TargetFileName)</TargetPath>
+    </PropertyGroup>
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+</Project>