MSFN Forum: How can I Install app silently from a VB prog ? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can I Install app silently from a VB prog ? Help needed Rate Topic: -----

#1 User is offline   brian 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-December 03

Posted 13 January 2004 - 03:30 PM

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 ?


#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 13 January 2004 - 04:01 PM

see http://www.MSFN.org/board/index.php?showtopic=9761&hl=

#3 User is offline   brian 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-December 03

Posted 14 January 2004 - 08:58 AM

Nice program, I still would like an example of the code to install this app silently.

#4 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

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.

#5 User is offline   brian 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 17-December 03

Posted 14 January 2004 - 01:13 PM

OK, but what if I want to hard code it inside the Visual Basic project ?

#6 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy