VBScript to install a file
-
Monday, February 04, 2013 12:40 AMWhat would be the VBScript syntax to install an app from a local drive (C:) when the script is run?
All Replies
-
Monday, February 04, 2013 12:56 AM
What would be the VBScript syntax to install an app from a local drive (C:) when the script is run?
Sorry but there is no such thing. VBScript is not an installer. To install an application you need to run the vendors installer file which will be an EXE or an MSI file. Contact the vendor of the application to get instructions on how to install it.
You can run a program, script or batch file from VBScript. Use WshShell.Exec or Run.
http://msdn.microsoft.com/en-us/library/2f38xsxe(v=vs.84).aspx
¯\_(ツ)_/¯
- Marked As Answer by Thomas LeeMVP, Moderator Monday, February 04, 2013 2:12 PM
-
Monday, February 04, 2013 12:57 AM
There is no way to run the installation file from a vbscript? Like Run.filetoinstall.exe (I know that is not correct syntax)?
If that is possible, is there a way to do it w/o having to click okay, and next on the prompts that display during a normal install?
-
Monday, February 04, 2013 1:04 AM
There is no way to run the installation file from a vbscript? Like Run.filetoinstall.exe (I know that is not correct syntax)?
If that is possible, is there a way to do it w/o having to click okay, and next on the prompts that display during a normal install?
I posted the link to do that. There is no way to automate the clicks. You need to ask the vendor how to customize or run their installer unattended.
Start by learning how installers work. Yu can get some information by searching the net.
Each program comes with a custom installer that has it's own rules and techniques. There is really no way to know how this works.
So installers us /u or -u and some use -q or /q . Many do not allow unattended installs. This is always up to the vendor. Posting to the vendors forum is one way of finding out how to do this. The other is to read the program documentation.
If you cannot do an unattended install from the command line you cannot do it from a script.
¯\_(ツ)_/¯
-
Monday, February 04, 2013 1:49 AMThank you for the information. I will look @ that, and post to the vendors. I know one file is going to be Microsoft Visual Basic 2006 I believe, do you happen to know what the unattended install command would be for this file?
-
Monday, February 04, 2013 1:52 AM
Thank you for the information. I will look @ that, and post to the vendors. I know one file is going to be Microsoft Visual Basic 2006 I believe, do you happen to know what the unattended install command would be for this file?
I don't believe there is one. VB 6 is no longer sold so you will have issues finding a license or any information. I believe it is still available with an full subscription to VS+MSDN library¯\_(ツ)_/¯
-
Monday, February 04, 2013 1:55 AM
Are you talking about the VB6 developer IDE or the runtime.
The runtime is already installed on Vista and later.
¯\_(ツ)_/¯
-
Monday, February 04, 2013 2:02 AM
Here are the runtime files. On all systems they will be at one of these locations:
***64 bit systems
C:\windows\SysWOW64\msvbvm60.dll
*** 32 bit systems
C:\windows\System32\msvbvm60.dllAny attempt to install on these systems will cause problems. Use the delivered versions.
Post in the VB forum for better information. This is not a scripting issue.
¯\_(ツ)_/¯
-
Monday, February 04, 2013 4:07 PM
Are you talking about the VB6 developer IDE or the runtime.
The runtime is already installed on Vista and later.
¯\_(ツ)_/¯
The VB6 Developer IDE. I have VBA coding that does not execute unless the VB6 developer IDE is installed on the machine that the VBA is going to run on. Unless you know of another way :) -
Monday, February 04, 2013 4:11 PMModerator
Hi,
This is not the appropriate forum to discuss VB6 questions.
Bill
-
Monday, February 04, 2013 5:15 PM
Are you talking about the VB6 developer IDE or the runtime.
The runtime is already installed on Vista and later.
¯\_(ツ)_/¯
The VB6 Developer IDE. I have VBA coding that does not execute unless the VB6 developer IDE is installed on the machine that the VBA is going to run on. Unless you know of another way :)VBA does not run under VB6 IDE. VBA is a Microsoft Office product. YOU must have at least one full Microsoft Office product installed. VB6 IDE is for creating EXE programs. VBA is for running extension code within Office programs.
Non of this has anything to do with scripting. I think you need to spend some more time learning what and how Windows is/works. You are taking some bits of incorrect information and attempting to use it for some unspecified reason.
VB6 IDE will not install on Vista and later systems.
This is an administrative scripting for Microsoft scripting products, like VBScript, JavaScript, PowerShell and other technologies. For you issues you will need to find a different forum.
Sorry.
¯\_(ツ)_/¯

