Help - Search - Members - Calendar
Full Version: Media Player 10 - VBS installer
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
decoy5657
For personal reasons I need to install apps via VBS.

Here is a code sample from my srcipt.

CODE
'----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?
top_pops
Need to escape the internal double-quotes around setup_wm...SystemRestore


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

or
CODE
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
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.