Jump to content

Media Player 10 - VBS installer


decoy5657

Recommended Posts

For personal reasons I need to install apps via VBS.

Here is a code sample from my srcipt.

'----START VARIABLES----
Dim StrWIMP
'----END VARIABLES----

Set oShell = CreateObject("Wscript.Shell")

   strWIMP = Chr(34) & """mp10setup.exe""" & Chr(34) & "  /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore""
oShell.Run "%comspec% /c " & strWIMP, 1, true

Thus far, this has worked for all other software, but if you run that script, it gives an error about the " right after C: I assume the script host thinks I want to end that statement... or something....

Ideas? Thoughts?

Link to comment
Share on other sites


strWIMP = "mp10setup.exe /q:A /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"""
oShell.Run "%comspec% /c " & strWIMP, 1, true

or

strWIMP = "mp10setup.exe /q:A /c:" & chr(34) & "setup_wm.exe /Q /R:N /DisallowSystemRestore" & chr(34)
oShell.Run "%comspec% /c " & strWIMP, 1, true

should work

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...