Discussion Locked

Possible to define/modify setup package?

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
i'm using the default VB6 setup package wizard to pack my application. however there are a lot of manual jobs need to be done after i've ran the setup package to my user pc, such as intall MDAC_2-5.EXE, MDAC_2-7.EXE and copy & register the NTWDBLIB.DLL to C:\Windows\System (cos the setup wizard will automatically placed the file in the application folder). i want to know isit possible to customise the setup so that it will automatically run both the MDACs and also placed the DLLs to a specifyfolder? if this setup wizard is unable to perform such customisation, wat r the setup package u recommended?

4 replies

by sl-campbell

Yes, it is possible.
In the
"Microsoft Visual Studio\VB98\Wizards\PDWizard\SetUp1"
folder is the Setup1.Vbp.
Make a back-up copy of the folder, open the project and make the desired changes such as adding dialogs or whatever, and then create the exe and copy it to the folder above (in the PDWizard folder - save the current Setup1.exe otherwise you will need to recreate it with the back-up Vbp if you decide to use the original again).

There are comments in the Vbp that show you where you should be putting the set-up dialogs to collect user input.

As far as the files that you are trying to copy, the MDAC can be also added to the package in the wizard and it will execute automatically during the installation of your program. If you want to let the user choose which MDAC to install, then zip each exe with a different name and add them to the package, add a dialog to the set-up vbp and at the end of the installation, unzip the correct MDAC file and execute it using Shell.
As far as the NTWDBLIB.DLL, you can change in the Wizard the folder that the file is to be copied to.

This discussion is closed to new replies.