This repository has been archived by the owner on Feb 20, 2021. It is now read-only.
forked from redis/redis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of WiX installer for Redis
- Loading branch information
1 parent
05e0ac8
commit 1167266
Showing
4 changed files
with
276 additions
and
27 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
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,98 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" | ||
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> | ||
<!-- | ||
32-bit installer | ||
Example installation (command-line): | ||
msiexec /i Redis-Windows-x86.msi LOGLEVEL=verbose CONFIG=redis.windows.conf | ||
--> | ||
<Product Id="*" Name="Redis on Windows" Language="1033" Version="1.0.0.0" Manufacturer="MSOpenTech" UpgradeCode="570e57d5-52ad-4a2d-b130-2b298da7700a"> | ||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> | ||
|
||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
<MediaTemplate EmbedCab="yes" /> | ||
|
||
<Property Id="ARPURLINFOABOUT" Value="https://github.com/MSOpenTech/redis" /> | ||
|
||
<Feature Id="ProductFeature" Title="Redis" Level="1"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
<ComponentGroupRef Id="DocumentationComponents" /> | ||
</Feature> | ||
</Product> | ||
|
||
<Fragment> | ||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFilesFolder"> | ||
<Directory Id="INSTALLFOLDER" Name="Redis-Windows" /> | ||
</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 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" /> | ||
</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> |
Oops, something went wrong.