-
Notifications
You must be signed in to change notification settings - Fork 5.4k
WiX installer added #210
WiX installer added #210
Conversation
…that devs won't have to install WiX.
…t might be better to use the default and set the config path later.
|
Hi @NickMRamirez, I'm your friendly neighborhood Microsoft Open Technologies, Inc. Pull Request Bot (You can call me MSOTBOT). Thanks for your contribution! TTYL, MSOTBOT; |
|
@NickMRamirez, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
|
Thank you @NickMRamirez for contributing this pull request! A WiX installer would certainly be a useful addition. I reviewed the proposed changes and I think that - while this in the right direction - there are some issues that would need to be addressed before we can accept this contribution:
Thanks, |
|
I'll update it soon, possibly this weekend. For #4, which config settings can we default and which should the installer ask for? I think it's better to at least default some things. What settings would a user most likely change when they first install? For #5, can you give more information about the steps you took to install (OS, for example)? |
…ave installed WiX instead.
… logo images for Redis.
|
Thanks @NickMRamirez ! I suppose that for service default settings, the redis.windows.conf that comes as a sample is a good starting point. I am wondering if there are any settings specific to running as a service that would justify creating a separate redis.service.conf. The only one I can think of is logfile (for a service, we don't want to log to stdout, but rather to a file in the same directory). But your installer already overrides the logfile option, correct? For #5, I just ran the installer on Windows 8.1 64-bit, then uninstalled from "Programs & Features". |
|
Adding a minor suggestion: |
… and firewall exception. The port will update the config file via a new WiX Custom action project.
… works if installed with the MSI.
|
I have made the following changes to the WiX setup:
Tested on:
Changes I did not make (since I didn't know the best way to do it):
Command-line usage: default install (port 6379 and firewall exception ON): |
|
Forgot to mention, about the logfile, if it's a good default, would it make sense to default it in the redis.windows.conf file? Not programmatically by the MSI? |
redis.windows.conf is a port of the sample redis.conf that ships with antirez\redis. I feel it would be best to keep it in line with redis.conf as much as possible, while adding documentation for windows-specific config options. So if such redis.windows.conf doesn't fit the usage scenario of a service installation, I would rather add a redis.service.conf for that purpose. |
…iewer. This required that we also log to a file with the logfile setting, otherwise messages are not written to the event viewer...probably a mishandling of Windows OS. The event viewer requires a messages resource in the form of a DLL, so I updated the Win32_Interop project to have a custom build step to compile EventLog.res into EventLog.dll. Updated the WiX project to create the Windows event source and also the directory where the event log file will be written.
|
Added service config file |
Add MSI installer. This is taken from #210, with a few more tweaks.
|
Landed in 199eb9f, with a few additional tweaks. Thank you, @NickMRamirez, great work ! |
Adds 64-bit and 32-bit MSI installers.
Installers do the following:
Outstanding issues:
WiX binaries are included here in the source. Further discussion needed about why this might not be desired. Submitting it this way for now so as not to hold anybody up on accepting this pull request if binaries in the source are okay.