I just installed Ruby 2.0.0 on Windows 7 (using "rubyinstaller-2.0.0-p247-x64.exe"). I think the File associations are OK:
$> assoc .rb
.rb = rbfile
$> ftype rbfile
rbfile="C:\Ruby200-x64\bin\ruby.exe" "%1" %*
However, I cannot pass any arguments to the interpreter.
So if I run a simple script (test.rb):
puts ARGV[0]
it gives nothing:
>test.rb test1
>
I guess I should add that I had Ruby 1.9.3 installed till yesterday. I uninstalled it, and installed the above (Ruby 2.0.0). Everything used to work fine in Ruby 1.9.3.
Please help !!
Thanks.
Other people had similar problems with Vista and Ruby 1.9 in the past. It seemed to be related to manual modifications or broken uninstalls of old versions.
A clean install of "rubyinstaller-2.0.0-p247-x64.exe" on Windows 7 works for me. The assoc
and ftype
commands do not know about ruby.
> assoc .rb
File association not found for extension .rb
> ftype rbfile
File type 'rbfile' not found or no open command associated with it.
I'd suggest you unset these values by starting a Shell as Administrator and running ftype rbfile=
and assoc .rb=
. If this doesn't help (make a backup and) delete all registry keys containing rbfile
. The correct keys use RubyFile
or RubyWFile
. The InnoSetup Script contains the correct registry entries.
Worked for me in Windows 7:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With