- NSIS Discussion
- How can i make an installation for a VB program?
Archive: How can i make an installation for a VB program?
mayanwarrior
2nd November 2001 18:13 UTC
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
2nd November 2001 18:22 UTC
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
2nd November 2001 18:33 UTC
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
2nd November 2001 19:15 UTC
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
2nd November 2001 19:16 UTC
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
2nd November 2001 19:24 UTC
wow
you saved me a hell of a headache, thanks buddy
mayanwarrior
2nd November 2001 20:12 UTC
hry
can anyone give me a sample script for a vb installation, i would like to have that
Koen van de Sande
2nd November 2001 21:33 UTC
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.
spanky
2nd November 2001 21:36 UTC
Koen van de Sande (who we all love :)) gave an example of installing VB runtimes here: http://forums.winamp.com/showthread....t=visual+basic
spanky
2nd November 2001 21:38 UTC
doh Koen!!! I gave the same reply but you beat me to it!
Koen van de Sande
2nd November 2001 22:01 UTC
Never mind :)
It's the thought that counts.