Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6851095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:12:22+00:00 2026-05-27T01:12:22+00:00

I have an installer made with NSIS that at a certain point runs the

  • 0

I have an installer made with NSIS that at a certain point runs the following 3 commands:

...
SetOutPath "$INSTDIR\Application"
nsExec::ExecToLog "jruby -S bundle exec rake db:create RAILS_ENV=production"
nsExec::ExecToLog "jruby -S bundle exec rake db:migrate RAILS_ENV=production"
nsExec::ExecToLog "jruby -S bundle exec rake db:seed RAILS_ENV=production"  
...

The installer packs JRuby with all the necessary gems already installed and it adds JRuby to Path enviroment variable before executing any jruby command.

The problem appears when I try to run my installer on a machine that has Ruby installed: when the installer gets to execute the above commands, it fails, returning some error like: C:\Ruby192\bin\ruby.exe invalid switch in RUBYOPT -F (RuntimeError)

I have checked the Path environment variable, and it looks pretty much like this:

C:\Ruby192\bin; ... ;C:\Program Files (x86)\MyApplication\JRuby\jruby-1.6.3\bin

My guess is that there is some kind of conflict between Ruby and JRuby. But I cannot figure out how to solve the problem.
Any help would be much appreciated.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:12:22+00:00Added an answer on May 27, 2026 at 1:12 am

    Have you considered using RVM: http://beginrescueend.com/. Then you have have both ruby and jruby running without conflicting each other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an installer application. In that we have one dll related to our
I currently have a project with an installer I made with NSIS, but I
I have made an application in openCVSharp.It works great. I have made the setup/installer
I made an NSIS installer that uses a UAC plugin awhile back. Now I
I've made a NSIS script to create an installer for a Rails application. The
I have made a simple installer application in Delphi, nothing fancy. Basically I include
I have made an application (in Visual Studio 2008 ). The installer for the first version
I have made an application in Visual C++ (That uses the command line). I
I have an application that I have built a .msi installer for throgh Microsoft
I have been made a windows service.in which i have been added project installer.in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.