/build/static/layout/Breadcrumb_cap_w.png

How to test VBS Wrapper on test machine?

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?


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: piyushnasa 11 years ago
Red Belt
1

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.
http://msiworld.blogspot.com.au/2011/11/repackaging-microsoft-visual-studio.html


~Piyush Nasa

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


Comments:
Posted by: jagadeish 11 years ago
Red Belt
0

Where is that script?


Comments:
  • 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 - AngelD 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ