-
Running an exe
I am running this in a VBS script:
Code:
ObjShell.run "<network share path>\setup.exe /s"
and it works for me. The /s runs it silent, and installs just fine, silently.
I am a domain admin, when I go to a users desktop to run it (they are LOCAL admins) it flashes the install icon in the task bar but doesn't install.
If I remove the /s it will run and install but requires user interaction, which I don't want.
Any ideas?
Thanks
-
Re: Running an exe
OK, it appears you mean this is a WSH script.
I'd guess you need to be a little more explicit about where the command ends and the command parameters begin. Try this instead:
Code:
ObjShell.Run """<network share path>\setup.exe"" /s"
That puts quotes around the command (program) full path, which helps the logic inside the Run method figure out that /s is a switch and not part of the program name.
-
Re: Running an exe
Sorry! I figured it out. The ONE pc I was testing it on was not a local admin for some reason. Tried it on a different PC and it worked just fine.
Thanks for your response, however!