I want to install a program silently.
In a .cmd file all I have to write is: setup.exe /s And this app is installed silently.
I want to make a program in VB 6 to install this app silently.
Could someone give me an example on how to do this in VB 6 ?
Page 1 of 1
How can I Install app silently from a VB prog ? Help needed
#2
Posted 13 January 2004 - 04:01 PM
#3
Posted 14 January 2004 - 08:58 AM
Nice program, I still would like an example of the code to install this app silently.
#4
Posted 14 January 2004 - 10:53 AM
Here's the actual command to launch another program from a VBScript.
Replace 'applist' with your command, the 1, is the style of window it runs in if any, and the true tells it to wait until program completes to continue with script.
result=wshell.run (applist, 1, TRUE)
i.e.
result=wshell.run ("msiexec -i myprogram.msi /q", 1, true)
Use whatever command you would use to install your program silently from the command prompt to install it silently from wshell.run.
Replace 'applist' with your command, the 1, is the style of window it runs in if any, and the true tells it to wait until program completes to continue with script.
result=wshell.run (applist, 1, TRUE)
i.e.
result=wshell.run ("msiexec -i myprogram.msi /q", 1, true)
Use whatever command you would use to install your program silently from the command prompt to install it silently from wshell.run.
#5
Posted 14 January 2004 - 01:13 PM
OK, but what if I want to hard code it inside the Visual Basic project ?
#6
Posted 14 January 2004 - 02:04 PM
sorry, for some reason I read your message as vbscript, not enough sleep.
in VB6 use the SHELL command.
in VB6 use the SHELL command.
- ← VBS effect on DirectX or Direct 3D
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- How can I convert "VB6.PixelsToTwipsX" to C# code? →
Share this topic:
Page 1 of 1



Help
Back to top









