Problem using File.Run with vcredist_x86

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • D.S. Ullman
    Forum Member
    • Feb 2008
    • 2

    Problem using File.Run with vcredist_x86

    I am trying to make the code below work. I have tried various combinations of escapes with no luck. I assume I am missing something simple but I am at wit's end.

    This code does not work but at least it is colored correctly.

    Code:
    result = File.Run(SessionVar.Expand("%AppFolder%").."\\vcredist_x86.exe","/q:a /c:""VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qb"" "", "", SW_SHOWNORMAL, true);
    The following works at the command line.
    Code:
    c:\vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:/""msiexec /i vcredist.msi /qb"/" "
  • pww
    Indigo Rose Customer
    • Jun 2005
    • 470

    #2
    a double quote " which is a part of the string should be preceded with \ not /

    myStr = "\"test\""; -- "test"

    Comment

    Working...
    X