# Win32-service: it's driving me crazy

**URL:** <https://www.ruby-forum.com/t/win32-service-its-driving-me-crazy/209104>\
**Category:** Ruby\
**Created:** [July 6, 2011, 12:01am UTC](https://www.ruby-forum.com/t/win32-service-its-driving-me-crazy/209104 "2011-07-06T00:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 6, 2011, 12:01am UTC](https://www.ruby-forum.com/t/win32-service-its-driving-me-crazy/209104/1 "2011-07-06T00:01:06Z")

</div>

Has anyone successfully installed the win32-service module on Ruby  
1.9.x?  
I have been struggling a long time now and still using ruby 1.8.6  
because I don’t face any problems with the old version.

Problem:  
When I use ruby 1.9.1 and load the win32-service module it prompts an  
error about a msv…dll

I already tried the ruby devkit from  
“[Development Kit · oneclick/rubyinstaller Wiki · GitHub](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit)” but  
with no luck.

Are there any alternatives for creating a “windows service” in  
combination with OCRA?

Thanks in advance!!

iLias

---

<div class="post-metadata">

**Author:** ![bankai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bankai](https://www.ruby-forum.com/u/bankai)\
**Post date:** [July 6, 2011, 2:30am UTC](https://www.ruby-forum.com/t/win32-service-its-driving-me-crazy/209104/2 "2011-07-06T02:30:18Z")

</div>

Ilias bankai wrote in post #1009222:

> Has anyone successfully installed the win32-service module on Ruby  
> 1.9.x?  
> I have been struggling a long time now and still using ruby 1.8.6  
> because I don’t face any problems with the old version.

win32-service do not work under 1.9.x because it uses SEH, which is a  
Microsoft-compiler extension to C to add exceptions that is not  
supported by GCC.

Please report this to the gem author:

> **[Issues · chef/win32-service](https://github.com/chef/win32-service/issues)**
>
> A Ruby library that allows users to inspect, control or create services on MS Windows - Issues · chef/win32-service

I believe this has already been fixed in the code but not released. Ask  
the author to release an updated gem.

–  
Luis L.

---

<div class="post-metadata">

**Author:** ![bankai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bankai](https://www.ruby-forum.com/u/bankai)\
**Post date:** [July 6, 2011, 10:43pm UTC](https://www.ruby-forum.com/t/win32-service-its-driving-me-crazy/209104/3 "2011-07-06T22:43:34Z")

</div>

Thanks for the response! I will report this as you mentioned.

Regards,

iLias
