Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How can I Install app silently from a VB prog ?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
brian

brian

    Junior

  • Member
  • Pip
  • 51 posts
  • Joined 17-December 03
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 ?


How to remove advertisement from MSFN

#2
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
see http://www.MSFN.org/...wtopic=9761&hl=

#3
brian

brian

    Junior

  • Member
  • Pip
  • 51 posts
  • Joined 17-December 03
Nice program, I still would like an example of the code to install this app silently.

#4
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
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
brian

brian

    Junior

  • Member
  • Pip
  • 51 posts
  • Joined 17-December 03
OK, but what if I want to hard code it inside the Visual Basic project ?

#6
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • Joined 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag
sorry, for some reason I read your message as vbscript, not enough sleep.
in VB6 use the SHELL command.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users