# Whats the best way to package deploy a Ruby app to windows? (no UI, also standalone if possible)

**URL:** <https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504>\
**Category:** Ruby\
**Created:** [September 14, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504 "2009-09-14T23:05:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 14, 2009, 11:05pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/1 "2009-09-14T23:05:01Z")

</div>

Hi,

Whats the best way to package deploy a Ruby app to windows??? (no UI,  
also standalone if possible)

In other words a tools I can create a normal windows installation  
package, or self extracting package, so that non-techo’s who get the  
installation can run it in seemlessly. Would need to be stand alone  
(i.e. no requirement for them to have installed Ruby themselves).

Thanks

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 14, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/2 "2009-09-14T23:06:47Z")

</div>

2009/9/15 Greg H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Thanks

PS. In fact I am interested in the same question for Windows & Mac so  
thought I could point that out. Would be great if there was a tool  
that spat out both installation packages at the same time.

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 14, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/3 "2009-09-14T23:28:53Z")

</div>

Greg H. wrote:

> Hi,
> 
> Whats the best way to package deploy a Ruby app to windows??? (no UI,  
> also standalone if possible)
> 
> In other words a tools I can create a normal windows installation  
> package, or self extracting package, so that non-techo’s who get the  
> installation can run it in seemlessly. Would need to be stand alone  
> (i.e. no requirement for them to have installed Ruby themselves).
> 
> Thanks

But this would defy the point of an interpretive language o\_O

If deploying is something your interested in, consider a compiled  
language?

Regards,

- Mac

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 14, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/4 "2009-09-14T23:35:19Z")

</div>

Well, regardless of whether or not I think it’s a good idea, I’ll throw  
an idea out for you:

unpack the ruby installation and change the environment path to “.”  
(current directory).

Should be able to use the entire library that way however this is a  
terrible approach. This means you have to move the entire ruby library  
around just to have someone use the program (which may be only 200kb for  
the program, but then you have to lug around all the libs, resourcefully  
expensive).

Regards,

- Mac

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 15, 2009, 12:31am UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/5 "2009-09-15T00:31:41Z")

</div>

On Tuesday, September 15, 2009, Luis L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > (i.e. no requirement for them to have installed Ruby themselves).

thanks Luis - what about support for installing the ruby script as a  
service?

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 15, 2009, 7:05pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/6 "2009-09-15T19:05:04Z")

</div>

you can also use JRuby and stick the whole thing in a jar …

> **[Homepage](https://spin.atomicobject.com/)**

or JRuby + rawr , which can give you Windows binaries , and Linux  
binaries  
…

[http://rubyforge.org/projects/rawr/](http://rubyforge.org/projects/rawr/)

You can use win32Utils if using Ruby MRI:

[http://win32utils.rubyforge.org/](http://win32utils.rubyforge.org/)

or use a Java service wrapper if using JRuby …

On Mon, Sep 14, 2009 at 6:31 PM, Greg H. \<

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 14, 2009, 11:37pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/7 "2009-09-14T23:37:14Z")

</div>

On Sep 14, 11:00 pm, Greg H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hi,
> 
> Whats the best way to package deploy a Ruby app to windows??? (no UI,  
> also standalone if possible)
> 
> In other words a tools I can create a normal windows installation  
> package, or self extracting package, so that non-techo’s who get the  
> installation can run it in seemlessly. Would need to be stand alone  
> (i.e. no requirement for them to have installed Ruby themselves).

Wrap your program/script around Ocra:

[http://ocra.rubyforge.org/](http://ocra.rubyforge.org/)

Install the gem, and the execute your script with ocra.

HTH,

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [September 15, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-package-deploy-a-ruby-app-to-windows-no-ui-also-standalone-if-possible/175504/8 "2009-09-15T22:11:13Z")

</div>

On Sep 14, 5:00 pm, Greg H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Thanks  
> Ruby2EXE might be what you are looking for. It allows for multi-  
> platform executables. Run a search on the Internet you may find more  
> current documentation. When I used for some windows stuff it worked  
> well for me, once I wrapped my head around it. Also be aware that  
> you’ll be adding the overhead of the Ruby engine to every script.  
> Depending on the size and number of scripts you are working with you  
> may find it isn’t suitable for your needs.

[http://www.erikveen.dds.nl/rubyscript2exe/](http://www.erikveen.dds.nl/rubyscript2exe/)

CParticle
