I have vb script to wrap .msi, .mst, and patches. When i tested install of msi with transform (mst), and it installed fine. But when i run the vbs wrapper, it says " The file specified could not be found". Any help?

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



Check the path. The path in which you have specified the msi is not correct. If there are any spaces in the path, then you need to use chr(34) as " and then specify the complete path.

You can use Current Directory as below if you are keeping the vbs in the same folder:

sCurDir = Left(WScript.ScriptFullName, InStrRev(WScript.ScriptFullName, "\") - 1)
I have used this here but not like for installation, but you can figure it out.

~Piyush Nasa

~My Blog:  http://msiworld.blogspot.com/

Answered 04/24/2013 by: piyushnasa
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity



Where is that script?

Answered 04/24/2013 by: jagadeish
Red Belt

  • it's all over the page

    the "interesting" line is
    ' Install Microsoft Visual Studio 2010
    oShell.Run chr(34) & sCurDir & "\Setup\setup.exe" & Chr(34) & " /q /full /norestart" , 1, 1
Please log in to comment