Archive: How can i make an installation for a VB program?


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


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.


THANKS
I haven't tought about that, another question, do i need to grab that files manually or NSIS will do that for me


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).


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.


wow
you saved me a hell of a headache, thanks buddy


hry
can anyone give me a sample script for a vb installation, i would like to have that


If you want the 'seperate file' one: look in this thread for my post:
http://forums.winamp.com/showthread.php?threadid=44869
If you want the distro one, say so, and I'll look it up.


Koen van de Sande (who we all love :)) gave an example of installing VB runtimes here: http://forums.winamp.com/showthread....t=visual+basic


doh Koen!!! I gave the same reply but you beat me to it!


Never mind :)
It's the thought that counts.