windows - NSIS to install ruby gems -
this function have in nsis script:
function rubydependencies detailprint "installing web runtime environment dependencies..." execwait "gem install rails –v2.3.8" execwait "gem install rake –v0.8.7" execwait "gem uninstall rake –v10.0.3" execwait "rake gems:install" detailprint "dependencies installed." functionend
i have tried:
execwait '"gem install rails -v2.3.8" $0'
and nothing displaying on $0, gem list remained empty.
any help?
thanks, telmo cardoso
edit: i'm still having problems. i'm using:
nsexec::exectolog '"$instdir\runtime\ruby\bin\gem.bat" install --ignore-dependencies --no-rdoc --no-ri rails -v=2.3.8'
and generating:
could not find valid gem '-v=2.3.8'
and install latest one. weird being passed in parameter. when run command outside installer, works supposed.
any help?
the correct syntax execwait '"c:\full\path\to\program.exe" param1 "space param" param3' $0
. execwait '"gem" ...'
work, gem.exe needs in path searched createprocess...
Comments
Post a Comment