MSFN Forum: [VB6] If program already running close it.... - MSFN Forum

Jump to content



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

[VB6] If program already running close it.... Rate Topic: -----

#1 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 18 November 2004 - 11:42 AM

*EDIT* Using Tskill / Taskkill to end the program.

*EDIT #2* What files need to come bundled with a Visual Basic 6 program? This is my first distributed VB6 application.... I know some people need msvbvm60.dll.. but thats all. Also.. i used an OCX control for the player.. do i have to include that as well? its the "windows Media Player" OCX...

This post has been edited by Bi0haZarD: 18 November 2004 - 03:16 PM



#2 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 18 November 2004 - 06:09 PM

Depends on the Program and version of VB you running.
I use this Visual Studio Installer 1.1 You run it to create the msi and it shows what files are needed. This is a growing curve to pick out whats installed already on a system. Just a little trial and pratice. Optionally you can run the Package and Deployment wizard and it creates the list also. I seen your other post about the mp3 player, it will be difficult to make it play during unattend especially at "user.cmd" since you can't run .msi installers. So you basically need a command line util. I use something different and it work's except in VMWare its a nightmare getting it right. I'd like to see your finished thing though.

#3 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 18 November 2004 - 11:25 PM

hmm kk, what i was thinking was copying the msvbvm60.dll and the other nessesary files to the system32 folder. I just don't know what files are truely important... and weather i have to include the "Windows Media Player" OCX or not.

This is Visual Basic 6.0 btw..

#4 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,482
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 November 2004 - 04:43 PM

If you copy then some may have to be regsvr'd but i'm sure you know that. If you run that program the Visual Studio will tell you what's necessary as far as files, you don't have to create a msi at that point just look and see. Under Properties when you select a file look at Register and it also tells you if it needs registering. vsifrNone = No registering needed, some files don't even need to be copied to Windows but instead placed in app.path
I've never messed with anything requiring "Windows Media Player" OCX

#5 User is offline   Stuntgp2000 

  • NeO
  • PipPip
  • Group: Members
  • Posts: 166
  • Joined: 05-August 04

  Posted 19 November 2004 - 05:04 PM

you have to download MicroMicrosoft Visual Basic 6 SP 6 RunTime and install it during windows installation.

this package contains :
W95Inf32.dll
W95Inf16.dll
Vbrun60.inf
Stdole2.tlb
Olepro32.dll
Oleaut32.dll
MsVbVm60.dll
Comcat.dll
asycfilt.dll
Advpack.dll

One important thing is for non english version of visual basic, you need an additional file for example french vb version softwares need vb6FR.dll, spanish need vb6ES.dll

and about the ocx, you don't need that ocx IF YOU INSTALL MEDIA PLAYER BEFORE YOU LAUNCH YOUR Programme. so if your programme use WMP 9 OCX then you have to make sure WMP9 is installed first.

I hope I could help

#6 User is offline   Synapse 

  • *Previously Bi0haZarD*
  • PipPipPipPipPip
  • Group: Members
  • Posts: 980
  • Joined: 29-July 04

Posted 20 November 2004 - 02:29 PM

Thanks B)

#7 User is offline   Tarun 

  • Area 5 Investigator
  • Group: Super Moderator
  • Posts: 2,991
  • Joined: 27-January 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 20 November 2004 - 02:45 PM

I actively develop Visual Basic 6 applications.

Best thing to get is Inno Setup and I use Inno Setup Tool to generate my scripts rapidly.

Nowdays, MSVBVM60.DLL is common on machines so I personally do not see any real reason to make it a required file in the setups.

When you use added items in VB, it adds an OCX. You will want to include that with your program distribution for the best results.

To find out all of the OCX files you're using in your project, do the following...
  • Under General, right click and choose "Components..."
  • Check off "Selected Items Only".
  • Highlight each of your OCX files and note the location, these are the files you will need to include.
Example picture attached. If you want you can PM me and I can help you out via a messenger if need be. I hope this helps! :)

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