From: jazzez ravi Date: 2009-01-21T14:52:01+09:00 Subject: Re: Is it possible to install exe via ruby code ? Hi Rodrigo Bermejo, Thanks for help... Still i am facing some issues. Details follows.. CODE: def homers_bird(dialog_name,key="{enter}") require 'pp' require 'win32ole' require "rubygems" require "win32ole_pp" wsh = WIN32OLE.new('WScript.Shell') puts wsh.AppActivate(dialog_name) while wsh.AppActivate(dialog_name) wsh.SendKeys("{enter}") sleep 0.1 puts "Shoot !" end puts "You win !!!!" end `C:\\MAIN\\Work\\sw\\tvcnew.exe` homers_bird("Setup - Total Video Converter 3.12","{enter}") OUTPUT: It doesn't automatically enter the ENTER key. So i press in manual then i got output like this false You win !!! ISSUE: The code --> puts wsh.AppActivate(dialog_name) sayd "false" to me. I tried few other EXE files also but i am still doesn't get the output. Please BOOST me once again... Waiting for ur reply -- Posted via http://www.ruby-forum.com/.