Skip to content

Commit

Permalink
Adds x86 WiX Setup Project
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson-Shook committed Nov 10, 2017
1 parent 7b3330f commit 2fc9ce2
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
Binary file added Setup-x86/Microsoft_VC141_CRT_x86.msm
Binary file not shown.
49 changes: 49 additions & 0 deletions Setup-x86/Product.wxs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Winclipper" Language="1033" Version="1.0.0.0" Manufacturer="Carson Shook" UpgradeCode="a332e06b-480d-4d31-aaca-e5f7a2ef1dbb">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />

<Feature Id="ProductFeature" Title="Winclipper" Level="1">
<Feature Id="VCRedist" Title="Visual C++ 14 Runtime" AllowAdvertise="no" Display="hidden" Level="1">
<MergeRef Id="VCRedist"/>
</Feature>
<ComponentRef Id="Winclipper.exe" />
<ComponentRef Id="license"/>
<ComponentRef Id="ApplicationShortcut"/>
</Feature>

<Directory Id="TARGETDIR" Name="SourceDir">
<Merge Id="VCRedist" SourceFile="Microsoft_VC141_CRT_x86.msm" DiskId="1" Language="0"/>
<Directory Id="ProgramFilesFolder">
<Directory Id="APPLICATIONROOTDIRECTORY" Name="Winclipper" />
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="Winclipper"/>
</Directory>
</Directory>

<DirectoryRef Id="APPLICATIONROOTDIRECTORY">
<Component Id="Winclipper.exe" Guid="D59FE155-8940-4EA5-A130-AB7CEBCB527A">
<File Id="Winclipper.exe" Source="$(var.Winclipper.TargetPath)" KeyPath="yes" Checksum="yes"/>
</Component>
<Component Id="license" Guid="45D353B2-26C9-4051-961C-1CF36A5E40F6">
<File Id="license" Source="..\license" KeyPath="yes"/>
</Component>
</DirectoryRef>

<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="31C219C0-9ECC-4539-B577-11753A697E38">
<Shortcut Id="ApplicationStartMenuShortcut"
Name="Winclipper"
Description="Winclipper Shortcut"
Target="[#Winclipper.exe]"
WorkingDirectory="ProductComponents"/>
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\Microsoft\Winclipper" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component>
</DirectoryRef>
</Product>
</Wix>
50 changes: 50 additions & 0 deletions Setup-x86/Setup-x86.wixproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?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>6abdd852-e224-40a6-bf59-536bbb399c57</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
<OutputName>WinclipperSetup-x86</OutputName>
<OutputType>Package</OutputType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Winclipper\Winclipper.vcxproj">
<Name>Winclipper</Name>
<Project>{8a9a600a-8ed3-48ce-925c-dbc70be4385d}</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Microsoft_VC141_CRT_x86.msm" />
</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>
8 changes: 8 additions & 0 deletions Winclipper/Winclipper.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 15.0.27004.2006
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Winclipper", "Winclipper.vcxproj", "{8A9A600A-8ED3-48CE-925C-DBC70BE4385D}"
EndProject
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Setup-x86", "..\Setup-x86\Setup-x86.wixproj", "{6ABDD852-E224-40A6-BF59-536BBB399C57}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Expand All @@ -21,6 +23,12 @@ Global
{8A9A600A-8ED3-48CE-925C-DBC70BE4385D}.Release|x64.Build.0 = Release|x64
{8A9A600A-8ED3-48CE-925C-DBC70BE4385D}.Release|x86.ActiveCfg = Release|Win32
{8A9A600A-8ED3-48CE-925C-DBC70BE4385D}.Release|x86.Build.0 = Release|Win32
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Debug|x64.ActiveCfg = Debug|x86
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Debug|x86.ActiveCfg = Debug|x86
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Debug|x86.Build.0 = Debug|x86
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Release|x64.ActiveCfg = Release|x86
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Release|x86.ActiveCfg = Release|x86
{6ABDD852-E224-40A6-BF59-536BBB399C57}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 2fc9ce2

Please sign in to comment.