Help with a batch file?

warcrow

Lifer
Jan 12, 2004
11,078
11
81
I want to run a MSI isntaller on a users ocmputer from my desktop. Here is my batch file that I've thrown together that will transfer the file (no problems there) to the desktop. But I cannot run the executable from here? I've tried putting "start", "run", "open" and "exec". Nothing is working. How do I get the MSI isntaller to run silently on the users computer?

xcopy "c:\opnclient-setup.msi" "\\simi-d202\c$\"

open \\simi-d202\opnclient-setup.msi /s /v /qn

xcopy "\\C:\Program Files\antepo\opnclient45\4.4.14.0\AdminOptions.xml\" "\\simi-d202\Program Files\antepo\opnclient45\4.4.12.9\AdminOptions.xml /y

pause
 

icelazer

Senior member
Dec 17, 1999
323
0
71
You cannot execute files on a remote computer in that fashion. What that would most likely do is to download the file to your local machine and execute it on your machine. You'll need to execute it via terminal services or have the user execute it or some other management console. You could probably write a program to do this using WMI if you had appropriate access.