Skip to content
⌘ NSIS Forum Archive

How can i make an installation for a VB program?

11 posts

mayanwarrior#

How can i make an installation for a VB program?

I mean what Dll's do i need to redisdribute, can the components adding and finding be done automatically, or do i need to know what components are my app using then copying these files and making the script.

I an doing an app that uses winsock, how can i add the winsock dll's to my installation?

thanks in advance
locnar42#
An easy way to find all components is to use the VB Package Wizard. It will create the (rather pathetic) setup program. From this, grab the setup.ini file and viola! you have the file list.

Another method, is to go to the components and references menus of VB and grab the filename for every DLL/OCX which is used.
mayanwarrior#
THANKS

I haven't tought about that, another question, do i need to grab that files manually or NSIS will do that for me
Koen van de Sande#
I know the problem - I wrote a script which correctly installs all the required VB DLLs - but that's about 1.2 MB.

Instead, I redistribute the Microsoft VBRUN60.EXE - only 1.0 MB.

I have VB-Run 6.0 SP 5 (most sites have older versions) on my website http://www.tibed.net/files/vbrun60.exe
If you extract it to a temporary folder, run it with the /Q quiet switch, all will be well.

WARNING: install them as the last thing! This file will ask the user if he wants to restart the computer if it updated system files - and the rest of your installer won't get executed (that gave me a headache - only found out after 4 months).
Koen van de Sande#
Forgot to say: the Microsoft distro does not include any OCX'es. But you can include them in your NSIS installer and use RegDLL to register them.
mayanwarrior#
hry

can anyone give me a sample script for a vb installation, i would like to have that
Koen van de Sande#
If you want the 'seperate file' one: look in this thread for my post:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.

If you want the distro one, say so, and I'll look it up.
spanky#
Koen van de Sande (who we all love 🙂) gave an example of installing VB runtimes here: http://forums.winamp.com/showthread....t=visual+basic