-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from springcomp/msi_version
Authored .MSI using WiX Toolset.
- Loading branch information
Showing
20 changed files
with
530 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
\.vs/ | ||
\.vscode/ | ||
|
||
[Bb]in/ | ||
[Oo]bj/ | ||
*.klc | ||
*.C | ||
*.H | ||
*.DEF | ||
*.RES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x64</Platform> | ||
<ProductVersion>3.10</ProductVersion> | ||
<ProjectGuid>9c0beb66-cfca-4d29-9bbc-31ec8adbdf7e</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<OutputName>KBFRZ71_amd64</OutputName> | ||
<OutputType>Package</OutputType> | ||
<ProductVersion Condition=" '$(ProductVersion)' == '' ">1.0.3.40</ProductVersion> | ||
<DefineSolutionProperties>false</DefineSolutionProperties> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> | ||
<OutputPath>..\Setup\bin\x86\$(Configuration)\net452\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(ProductVersion)</DefineConstants> | ||
<SuppressIces>ICE09</SuppressIces> | ||
<CompilerAdditionalOptions>-sw1091</CompilerAdditionalOptions> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> | ||
<OutputPath>..\Setup\bin\x86\$(Configuration)\net452\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>ProductVersion=$(ProductVersion)</DefineConstants> | ||
<CompilerAdditionalOptions>-sw1091</CompilerAdditionalOptions> | ||
<SuppressIces>ICE09</SuppressIces> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="..\Package_x86\CustomAction.wxs"> | ||
<Link>CustomAction.wxs</Link> | ||
</Compile> | ||
<Compile Include="..\Package_x86\Product.wxs"> | ||
<Link>Product.wxs</Link> | ||
</Compile> | ||
<Content Include="..\Package_x86\Components_x64.wxi"> | ||
<Link>Components_x64.wxi</Link> | ||
</Content> | ||
<Content Include="..\Package_x86\Components_x86.wxi"> | ||
<Link>Components_x86.wxi</Link> | ||
</Content> | ||
<Content Include="..\Package_x86\Conditions.wxi"> | ||
<Link>Conditions.wxi</Link> | ||
</Content> | ||
<Content Include="..\Package_x86\Features.wxi"> | ||
<Link>Features.wxi</Link> | ||
</Content> | ||
<Content Include="..\Package_x86\InstallExecuteSequence.wxi"> | ||
<Link>InstallExecuteSequence.wxi</Link> | ||
</Content> | ||
<Content Include="..\Package_x86\Properties.wxi"> | ||
<Link>Properties.wxi</Link> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Setup\Setup.csproj"> | ||
<Name>Setup</Name> | ||
<Project>{2be83297-a293-47a1-9f79-5ab75aebaf55}</Project> | ||
<Private>True</Private> | ||
<DoNotHarvest>True</DoNotHarvest> | ||
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> | ||
<RefTargetDir>INSTALLFOLDER</RefTargetDir> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> | ||
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> | ||
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> | ||
</Target> | ||
<!-- | ||
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"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include> | ||
|
||
<Component Id="Component.x64.KBFRZ71_caps" Guid="261854A1-16A3-4C79-8A80-7AD57490C74D" Win64="yes"> | ||
<File Id="File.x64.KBFRZ71.dll" Source="$(var.Setup.ProjectDir)..\Package_x64\bin\KBFRZ71.dll" KeyPath="yes" /> | ||
</Component> | ||
|
||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include> | ||
|
||
<Component Id="Component.x86.KBFRZ71_caps" Guid="07C83047-A24A-46C2-B783-C120AB7C5591" Win64="no"> | ||
<Condition><![CDATA[ 1 = 1 ]]></Condition> | ||
<File Id="File.x86.KBFRZ71.dll" Source="$(var.Setup.ProjectDir)..\Package_x86\bin\KBFRZ71.dll" KeyPath="yes" /> | ||
</Component> | ||
|
||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include> | ||
|
||
<MajorUpgrade | ||
AllowDowngrades="no" DowngradeErrorMessage="Une version précédente de ce produit est déjà installée. Supprimer la version précédente avant de poursuivre l'installation." | ||
AllowSameVersionUpgrades="no" | ||
/> | ||
|
||
<Condition Message="La disposition de clavier AZERTY NF Z71-300 (KBFRZ71.DLL) est déjà installée sur cet ordinateur. L’installation ne peut pas se poursuivre."> | ||
<![CDATA[ KEYBOARD_ALREADY_PRESENT = "" OR Installed ]]> | ||
</Condition> | ||
|
||
<Condition Message="La disposition de clavier AZERTY NF Z71-300 ne peut pas être installée sur Windows95, Windows98 ou Windows Me. L’installation ne peut pas se poursuivre."> | ||
<![CDATA[ Version9X = "" ]]> | ||
</Condition> | ||
|
||
<?if $(var.Platform) = x64 ?> | ||
|
||
<Condition Message="L’installation de ce package n’est pas supportée sur une machine dotée d’un processeur de ce type."> | ||
<![CDATA[ NOT Intel64 ]]> | ||
</Condition> | ||
|
||
<?endif?> | ||
|
||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
|
||
<Fragment> | ||
|
||
<?if $(var.Platform) = x64 ?> | ||
|
||
<CustomAction Id="SetFilePath.x64" Property="RegisterKeyboard" Value="[#File.x64.KBFRZ71.dll]|[LCIDValue]" Execute="immediate" /> | ||
|
||
<?else?> | ||
|
||
<CustomAction Id="SetFilePath.x86" Property="RegisterKeyboard" Value="[#File.x86.KBFRZ71.dll]|[LCIDValue]" Execute="immediate" /> | ||
|
||
<?endif?> | ||
|
||
<CustomAction Id="RegisterKeyboard" BinaryKey="KbdMsi" DllEntry="CA01" Execute="deferred" Impersonate="no" Return="check" /> | ||
<CustomAction Id="UnregisterKeyboard" BinaryKey="KbdMsi" DllEntry="CA02" Execute="deferred" Impersonate="no" Return="check" /> | ||
|
||
<CustomAction Id="AddKeyboardToLangBar" BinaryKey="KbdMsi" DllEntry="CA03" Execute="deferred" Return="check" /> | ||
<CustomAction Id="RemoveKeyboardFromLangBar" BinaryKey="KbdMsi" DllEntry="CA04" Execute="deferred" Return="check" /> | ||
|
||
<Binary Id="KbdMsi" SourceFile="$(var.Setup.ProjectDir)..\Package_x86\bin\KbdMsi.dll" /> | ||
|
||
</Fragment> | ||
|
||
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include> | ||
|
||
<?if $(var.Platform) = x64 ?> | ||
|
||
<Feature Id="F_CA8158D1_4371_4866_B39E_8A199A62131F" Title="AZERTY NF Z71-300 (SGCaps)" Level="1" TypicalDefault="install" InstallDefault="local" AllowAdvertise="no" Absent="disallow"> | ||
<ComponentRef Id="Component.x86.KBFRZ71_caps" /> | ||
<ComponentRef Id="Component.x64.KBFRZ71_caps" /> | ||
</Feature> | ||
|
||
<?else?> | ||
|
||
<Feature Id="F_CA8158D1_4371_4866_B39E_8A199A62131F" Title="AZERTY NF Z71-300 (SGCaps)" Level="1" TypicalDefault="install" InstallDefault="local" AllowAdvertise="no" Absent="disallow"> | ||
<ComponentRef Id="Component.x86.KBFRZ71_caps" /> | ||
</Feature> | ||
|
||
<?endif?> | ||
|
||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Include> | ||
|
||
<?if $(var.Platform) = x64 ?> | ||
|
||
<InstallExecuteSequence> | ||
<Custom Action="SetFilePath.x64" Sequence="4030"> <![CDATA[ 1 = 1 ]]></Custom> | ||
|
||
<Custom Action="RemoveKeyboardFromLangBar" Sequence="4040"><![CDATA[ $Component.x64.KBFRZ71_caps = 2 ]]></Custom> | ||
<Custom Action="UnregisterKeyboard" Sequence="4060"><![CDATA[ $Component.x64.KBFRZ71_caps = 2 ]]></Custom> | ||
<Custom Action="RegisterKeyboard" Sequence="4050"><![CDATA[ $Component.x64.KBFRZ71_caps > 2 ]]></Custom> | ||
<Custom Action="AddKeyboardToLangBar" Sequence="4065"><![CDATA[ $Component.x64.KBFRZ71_caps > 2 ]]></Custom> | ||
</InstallExecuteSequence> | ||
|
||
<?else?> | ||
|
||
<InstallExecuteSequence> | ||
<Custom Action="SetFilePath.x86" Sequence="4030"> <![CDATA[ 1 = 1 ]]></Custom> | ||
|
||
<Custom Action="RemoveKeyboardFromLangBar" Sequence="4040"><![CDATA[ $Component.x86.KBFRZ71_caps = 2 ]]></Custom> | ||
<Custom Action="UnregisterKeyboard" Sequence="4060"><![CDATA[ $Component.x86.KBFRZ71_caps = 2 ]]></Custom> | ||
<Custom Action="RegisterKeyboard" Sequence="4050"><![CDATA[ $Component.x86.KBFRZ71_caps > 2 ]]></Custom> | ||
<Custom Action="AddKeyboardToLangBar" Sequence="4065"><![CDATA[ $Component.x86.KBFRZ71_caps > 2 ]]></Custom> | ||
</InstallExecuteSequence> | ||
|
||
<?endif?> | ||
|
||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>3.10</ProductVersion> | ||
<ProjectGuid>31449d77-5f06-456f-812f-4ac4d05119a6</ProjectGuid> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<OutputName>KBFRZ71_i386</OutputName> | ||
<OutputType>Package</OutputType> | ||
<ProductVersion Condition=" '$(ProductVersion)' == '' ">1.0.3.40</ProductVersion> | ||
<DefineSolutionProperties>false</DefineSolutionProperties> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<OutputPath>..\Setup\bin\x86\$(Configuration)\net452\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>Debug;ProductVersion=$(ProductVersion)</DefineConstants> | ||
<SuppressIces>ICE09</SuppressIces> | ||
<CompilerAdditionalOptions>-sw1091</CompilerAdditionalOptions> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<OutputPath>..\Setup\bin\x86\$(Configuration)\net452\</OutputPath> | ||
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> | ||
<DefineConstants>ProductVersion=$(ProductVersion)</DefineConstants> | ||
<CompilerAdditionalOptions>-sw1091</CompilerAdditionalOptions> | ||
<SuppressIces>ICE09</SuppressIces> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="CustomAction.wxs" /> | ||
<Compile Include="Product.wxs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Components_x64.wxi" /> | ||
<Content Include="Components_x86.wxi" /> | ||
<Content Include="Conditions.wxi" /> | ||
<Content Include="Features.wxi" /> | ||
<Content Include="InstallExecuteSequence.wxi" /> | ||
<Content Include="Properties.wxi" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Setup\Setup.csproj"> | ||
<Name>Setup</Name> | ||
<Project>{2be83297-a293-47a1-9f79-5ab75aebaf55}</Project> | ||
<Private>True</Private> | ||
<DoNotHarvest>True</DoNotHarvest> | ||
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups> | ||
<RefTargetDir>INSTALLFOLDER</RefTargetDir> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /> | ||
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> | ||
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /> | ||
</Target> | ||
<!-- | ||
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"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
Oops, something went wrong.