|
-
Dec 30th, 2010, 11:56 AM
#1
Thread Starter
Lively Member
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
-
Dec 31st, 2010, 10:18 PM
#2
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.
-
Jan 3rd, 2011, 09:50 AM
#3
Thread Starter
Lively Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|