Added a UI to the WiX installer. Also, added license text and branded logo images for Redis.
This commit is contained in:
committed by
Alexis Campailla
parent
a4d2df10b8
commit
a38bbe72e1
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
|
||||
xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension">
|
||||
<Fragment>
|
||||
<PropertyRef Id="WIX_ACCOUNT_NETWORKSERVICE" />
|
||||
|
||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||
<Component Id="cmp_redis_benchmarkEXE" Guid="*">
|
||||
<File Source="$(var.RedisBenchmark.TargetDir)redis-benchmark.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_check_aofEXE" Guid="*">
|
||||
<File Source="$(var.RedisCheckAof.TargetDir)redis-check-aof.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_check_dumpEXE" Guid="*">
|
||||
<File Source="$(var.RedisCheckDump.TargetDir)redis-check-dump.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_cliEXE" Guid="*">
|
||||
<File Source="$(var.RedisCli.TargetDir)redis-cli.exe" />
|
||||
</Component>
|
||||
|
||||
<!--
|
||||
The following component installs Redis as a Windows service.
|
||||
-->
|
||||
<Component Id="cmp_redis_server" Guid="*">
|
||||
<File Id="file_redis_server" Source="$(var.RedisServer.TargetDir)redis-server.exe" />
|
||||
<ServiceInstall Id="redisService" Name="Redis" DisplayName="Redis" Description="This service runs the Redis server" Start="auto" ErrorControl="normal" Type="ownProcess" Arguments="--service-run "[#file_redis.windowsCONF]" --loglevel [LOGLEVEL]" Account="[WIX_ACCOUNT_NETWORKSERVICE]" />
|
||||
<ServiceControl Id="redisServiceControl" Name="Redis" Start="install" Stop="both" Remove="uninstall" Wait="yes" />
|
||||
<fw:FirewallException Id="fw_redis_server" Program="[#file_redis_server]" Description="Exception for Redis server" Name="Redis" Scope="any" />
|
||||
</Component>
|
||||
|
||||
<!--
|
||||
The following component gives the NetworkService user full access to the Redis install directory.
|
||||
It needs this to start the service.
|
||||
-->
|
||||
<Component Id="cmp_give_network_service_folder_permissions" Guid="{55E5EFB3-61E6-4D51-934E-BFEEFB430701}">
|
||||
<CreateFolder>
|
||||
<util:PermissionEx User="[WIX_ACCOUNT_NETWORKSERVICE]" GenericAll="yes" />
|
||||
</CreateFolder>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
|
||||
<!--Documentation files-->
|
||||
<ComponentGroup Id="DocumentationComponents" Directory="INSTALLFOLDER" Source="..\setups\documentation">
|
||||
<Component Id="cmp_Redis_on_Windows_Release_NotesDOCX" Guid="*">
|
||||
<File Name="Redis on Windows Release Notes.docx" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_Redis_on_WindowsDOCX" Guid="*">
|
||||
<File Name="Redis on Windows.docx" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis.windowsCONF" Guid="*">
|
||||
<File Id="file_redis.windowsCONF" Name="redis.windows.conf" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_Windows_Service_DocumentationDOCX" Guid="*">
|
||||
<File Name="Windows Service Documentation.docx" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
||||
Binary file not shown.
@@ -15,6 +15,13 @@
|
||||
<MediaTemplate EmbedCab="yes" />
|
||||
|
||||
<Property Id="ARPURLINFOABOUT" Value="https://github.com/MSOpenTech/redis" />
|
||||
<Property Id="LOGLEVEL" Value="verbose" />
|
||||
|
||||
<UIRef Id="WixUI_InstallDir"/>
|
||||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
|
||||
<WixVariable Id="WixUILicenseRtf" Value="License.rtf"/>
|
||||
<WixVariable Id="WixUIDialogBmp" Value="redis_background.jpg"/>
|
||||
<WixVariable Id="WixUIBannerBmp" Value="top_banner.jpg"/>
|
||||
|
||||
<Feature Id="ProductFeature" Title="Redis" Level="1">
|
||||
<ComponentGroupRef Id="ProductComponents" />
|
||||
@@ -29,72 +36,4 @@
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Fragment>
|
||||
|
||||
<Fragment>
|
||||
<PropertyRef Id="WIX_ACCOUNT_NETWORKSERVICE" />
|
||||
|
||||
<!--
|
||||
The following properties can be customized.
|
||||
-->
|
||||
<Property Id="LOGLEVEL" Value="verbose" />
|
||||
<Property Id="CONFIG" Value="redis.windows.conf" />
|
||||
|
||||
<!--Executable files-->
|
||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||
<Component Id="cmp_redis_benchmarkEXE" Guid="*">
|
||||
<File Source="$(var.RedisBenchmark.TargetDir)redis-benchmark.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_check_aofEXE" Guid="*">
|
||||
<File Source="$(var.RedisCheckAof.TargetDir)redis-check-aof.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_check_dumpEXE" Guid="*">
|
||||
<File Source="$(var.RedisCheckDump.TargetDir)redis-check-dump.exe" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis_cliEXE" Guid="*">
|
||||
<File Source="$(var.RedisCli.TargetDir)redis-cli.exe" />
|
||||
</Component>
|
||||
|
||||
<!--
|
||||
The following component installs Redis as a Windows service.
|
||||
-->
|
||||
<Component Id="cmp_redis_server" Guid="*">
|
||||
<File Id="file_redis_server" Source="$(var.RedisServer.TargetDir)redis-server.exe" />
|
||||
<ServiceInstall Id="redisService" Name="Redis" DisplayName="Redis" Description="This service runs the Redis server" Start="auto" ErrorControl="normal" Type="ownProcess" Arguments="--service-run [CONFIG] --loglevel [LOGLEVEL]" Account="[WIX_ACCOUNT_NETWORKSERVICE]" />
|
||||
<ServiceControl Id="redisServiceControl" Name="Redis" Start="install" Stop="both" Remove="uninstall" Wait="yes" />
|
||||
<fw:FirewallException Id="fw_redis_server" Program="[#file_redis_server]" Description="Exception for Redis server" Name="Redis" Scope="any" />
|
||||
</Component>
|
||||
|
||||
<!--
|
||||
The following component gives the NetworkService user full access to the Redis install directory.
|
||||
It needs this to start the service.
|
||||
-->
|
||||
<Component Id="cmp_give_network_service_folder_permissions" Guid="{55E5EFB3-61E6-4D51-934E-BFEEFB430701}">
|
||||
<CreateFolder>
|
||||
<util:PermissionEx User="[WIX_ACCOUNT_NETWORKSERVICE]" GenericAll="yes" />
|
||||
</CreateFolder>
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
|
||||
<!--Documentation files-->
|
||||
<ComponentGroup Id="DocumentationComponents" Directory="INSTALLFOLDER" Source="..\setups\documentation">
|
||||
<Component Id="cmp_Redis_on_Windows_Release_NotesDOCX" Guid="*">
|
||||
<File Name="Redis on Windows Release Notes.docx" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_Redis_on_WindowsDOCX" Guid="*">
|
||||
<File Name="Redis on Windows.docx" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_redis.windowsCONF" Guid="*">
|
||||
<File Name="redis.windows.conf" />
|
||||
</Component>
|
||||
|
||||
<Component Id="cmp_Windows_Service_DocumentationDOCX" Guid="*">
|
||||
<File Name="Windows Service Documentation.docx" />
|
||||
</Component>
|
||||
</ComponentGroup>
|
||||
</Fragment>
|
||||
</Wix>
|
||||
@@ -23,6 +23,7 @@
|
||||
<CompilerAdditionalOptions>-arch x64</CompilerAdditionalOptions>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="FileComponents.wxs" />
|
||||
<Compile Include="Product.wxs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -68,6 +69,10 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WixExtension Include="WixUIExtension">
|
||||
<HintPath>..\..\..\..\Program Files (x86)\WiX Toolset v3.9\bin\WixUIExtension.dll</HintPath>
|
||||
<Name>WixUIExtension</Name>
|
||||
</WixExtension>
|
||||
<WixExtension Include="WixFirewallExtension">
|
||||
<HintPath>$(WixToolPath)WixFirewallExtension.dll</HintPath>
|
||||
<Name>WixFirewallExtension</Name>
|
||||
@@ -77,6 +82,11 @@
|
||||
<Name>WixUtilExtension</Name>
|
||||
</WixExtension>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="License.rtf" />
|
||||
<Content Include="redis_background.jpg" />
|
||||
<Content Include="top_banner.jpg" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(WixTargetsPath)" />
|
||||
<!--
|
||||
To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user