Vb script Using Execute Resoure

Greetings Professionals ,

I am trying to Install an agent where setup file is a VBscript . Im trying to run that file using execute resource but it fails,

Can any one please help me how to execute a VBscript file below is the recipe im trying to execute

execute ‘InstallService.vbs’ do
cwd 'C:\Program Files (x86)\machineagent-bundle-64bit-windows-4.4.0.498\InstallService.vbs’
command 'cscript /nologo InstallService.vbs’
end

Thanks
Prash

what error you are getting?
your cwd argument should be the parent directory of the script, not the script path

Hi Ranjib,
Please find the screenshot attached .

image

Thanks
Prashanth

Ranjib,
this works thank you for your help…!