Skip to content

Commit

Permalink
Working installer.
Browse files Browse the repository at this point in the history
Silvenga committed Nov 20, 2016
1 parent 90b4eeb commit f8c30e6
Showing 4 changed files with 65,993 additions and 21 deletions.
65,969 changes: 65,969 additions & 0 deletions GnuWin32/Directory.wxs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions GnuWin32/GnuWin32.wixproj
Original file line number Diff line number Diff line change
@@ -10,17 +10,21 @@
<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>
<IncludeSearchPaths>
</IncludeSearchPaths>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
<LinkerAdditionalOptions>-b ..\Vendor\gnuwin32\</LinkerAdditionalOptions>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="Directory.wxs" />
<Compile Include="Product.wxs" />
</ItemGroup>
<ItemGroup>
40 changes: 19 additions & 21 deletions GnuWin32/Product.wxs
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="GnuWin32" Language="1033" Version="1.0.0.0" Manufacturer="Silvenga"
UpgradeCode="31712c9f-3be0-4c84-9e7a-4093a9739b91">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

<Product Id="*" Name="GnuWin32" Language="1033" Version="1.0.0.0" Manufacturer="Silvenga"
UpgradeCode="199dcdab-7578-4f5d-af6e-897f76394995">

<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />
<Condition Message="You need to be an administrator to install this product.">Privileged</Condition>

<Icon Id="gnuwin32.ico" SourceFile="gnuwin32.ico" />
<Property Id="ARPPRODUCTICON" Value="gnuwin32.ico" />

<Feature Id="ProductFeature" Title="GnuWin32" Level="1">
<ComponentRef Id="GnuWin32bin" />
</Feature>
</Product>

<Fragment>
<Condition Message="You need to be an administrator to install this product.">
AdminUser
</Condition>
</Fragment>

<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="GnuWin32">
<Component Id='GnuWin32bin' Guid='F80EF228-5751-4150-9A39-E2A367908513'>
<RemoveFolder Id='INSTALLFOLDER' On='uninstall' />
</Component>
<Directory Id="GnuWin32BinDirRef" Name="GnuWin32">
</Directory>
</Directory>
<Component Id="GnuWin32Path" Guid="57DB6020-18EB-48B1-8D7B-F2C74EE1F2A0">
<Environment Id="PATH" Name="PATH" Value="[GnuWin32BinDirRef]bin" Permanent="no" Part="last" Action="set"
System="yes" />
</Component>
</Directory>
</Fragment>


<Feature Id="Complete" Title="GnuWin32" Level="1">
<ComponentGroupRef Id="GnuWin32Bin" />
<ComponentRef Id="GnuWin32Path" />
</Feature>

</Product>

</Wix>
1 change: 1 addition & 0 deletions harvest.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"C:\Program Files (x86)\WiX Toolset v3.10\bin\heat.exe" dir "Vendor\gnuwin32" -gg -sfrag -template fragment -out "GnuWin32\Directory.wxs" -cg GnuWin32Bin -dr GnuWin32BinDirRef -srd -sreg -g1

0 comments on commit f8c30e6

Please sign in to comment.