Hi Walter, Just reposting my response to the list + a few more bits after seeing the thread. This is not difficult to do. However I'm currently moving home & continents so not much spare time.
TL;DR 1. install accompanying vcredist. 2. change local.ini as required. 3. read couchdb.bat and use erl.exe + same parameters as a service, not erlsrv. lean.7z was created to allow people to integrate minimal couch into their apps without the service or installer crud. CouchDB runs just fine using couchdb.bat without *any* reg keys, just updating the 3 relevant ini files. No need for more smarts. Or just create a service as erl.exe or werl.exe with the same parameters as used in couchdb.bat and it will work fine. Finally, you can't "just" add erlsrv.exe as a service; it stores its configuration for auto-restart & other functionality in HKLM/Software/.... This is erlang stuff & when you understand why its built like that it is pretty useful. Some homework - read: http://wiki.apache.org/couchdb/Quirks_on_Windows especially "How is CouchDB deployed on Windows?" and "Integrating CouchDB into your Windows Applications" also http://www.erlang.org/doc/man/erl.html erl and werl are functionally equivalent apart from werl having better scroll bars and copynpaste. the lean build referred to in https://issues.apache.org/jira/browse/COUCHDB-1181 is here https://github.com/dch/couchdb/downloads (tested) and a more beta-y couch 1.2.x are in here - some bits don't work (snappy) others should (coffeescript), https://www.dropbox.com/s/jeifcxpbtpo78ak/Snapshots/ In my experience this is a really helpful & open community; I certainly have benefited from it. The questions you're seeing are not rude, nor inflammatory; just bewilderment when seeing somebody trying very hard to make windows look like unix. There are a lot of people here, myself included, who have spent a long time futzing this! Relax, we're just trying to understand where you are coming from. One can climb Mt Everest walking from sea-level, but 95% of people doing so don't. There's probably something in that. Maybe you're one of those lone buddhist monks in an orange robe :-) A+ Dave On 5 August 2011 05:55, Walter Torres <[email protected]> wrote: > Thanks for this tool! > > It may help, but it looks promising. > > Thank you > > On Thu, Aug 4, 2011 at 6:01 PM, Chad Cross <[email protected]> wrote: > >> Walter, >> >> Have you tried using procmon to watch the executable(s)? It will record >> registry access, though I'm not sure if it will record that the app was >> attempting to access a key that does not exist, but it's definitely worth a >> shot! >> >> http://technet.microsoft.com/en-us/sysinternals/bb896645 >> >> -Chad >> >> On Thu, Aug 4, 2011 at 12:28 PM, Dennis Redfield < >> [email protected]> wrote: >> >> > You really are at the mercy of the folks who wrote the installer, perhaps >> > they will chime in. The Registry system is quite complex and is a >> > combination of keys required by the system: security, uninstall, service >> > installation and keys which are set uniquely by the application (I assume >> > this is what you intended when you said APP REG KEYS). So your best bet >> is >> > to go back to the couchdb installation source, talk to the installation >> > authors and hit the books. >> > >> > BTW: The reason I asked your intent (i.e. your goal) was what you are >> > attempting to do is going to require some real effort - if do-able at all >> > and I was hoping that if I knew what you were trying to accomplish there >> > might be another way to achieve the goal. >> > >> > Question: I understand (from the Wiki) that mySQL does NOT run as a >> > windows >> > service but as a process within the hosting application (e.g. as a linked >> > lib). Is this not correct? >> > >> > thanks >> > >> > dlr >> > >> > >> > On Thursday, August 4, 2011, Walter Torres <[email protected]> wrote: >> > > Ok, ok. I guess I should be very specific.... >> > > >> > > When I refer to REG KEYS, I do not include KEYS that windows creates >> > > when a SERVICE is installed. To my referring to APP REG KEYS, not >> > > windows SERVICE REG KEYS >> > > >> > > Am I splitting hairs? I don't think so. SERVICE REG KEYS are not used >> > > by the app. >> > > >> > > When I installed "erlsrv.exe" as a SERVICE, windows created the >> > > SERVICE REG KEYS. It appears in the SERVICES control and it allows me >> > > to attempt to start it. >> > > >> > > I believe that the error I am getting is because the app is trying to >> > > access an APP KEY of some kind. >> > > >> > > As for reading the installer code; well I did that for about an hour >> > > and nothing jumped out at me. But than, I'm not that experiences with >> > > windows installer. >> > > >> > > That's why I asked in here. I was hoping someone who had experience >> > > with the windows would know about keys and might know a work around. >> > > >> > > I was really hoping that this group would be a bit different than >> > > other open source groups. I don't know why I would have that >> > > expectation. I ran into the same "resistance", the same "bewilderment" >> > > at the idea of not using an installer when I started working on apache >> > > and on nearly every Linux based app that has a windows binary. >> > > >> > > Maybe these replies are thinking they are helping, but read the >> > > replies again. Do they really help with the scenario given? Not from >> > > my POV. They read to me as just questioning my logic not addressing >> > > the issue. >> > > >> > > Does anyone gave any experience with windows? With how the app uses >> KEYS, >> > etc. >> > > >> > > I don't have the experience to correct any code and recompile a >> > > binary. And I think that is what will have to happen. I don't believe >> > > there is any reason, none, for the need of a REG KEY, and I'm not >> > > talking about any SERVICE REG KEYS. >> > > >> > > Anyone have any ideas or anyone with the bandwidth to look into this? >> > > >> > > >> > > --------------------------------------- >> > > Walter >> > > >> > > On Aug 4, 2011, at 9:28 AM, Keith Gable <[email protected]> >> > wrote: >> > > >> > >> On Aug 4, 2011 9:22 AM, "Walter Torres" <[email protected]> wrote: >> > >>> >> > >>> I have Apache and mySQL running, as a SERVICE, without REG KEYS. >> > >> >> > >> Impossible. You still have to have the service keys in the registry >> that >> > >> tell Windows how to start/stop services. Maybe CouchDB is attempting >> to >> > >> install this for you or expects to read settings from those keys. I'd >> > check >> > >> the source for the installer code and go from there. >> > > >> > >> > -- >> > Trust No One >> > >> >
