VB Converter: Difference between revisions
m (Download link and instructions) |
m (Better instructions) |
||
Line 25: | Line 25: | ||
== Download == | == Download == | ||
Download the current version zipped: [[Media:VB6-NSI-Setup.zip]] | Download the current version zipped: [[File:zip.gif]][[Media:VB6-NSI-Setup.zip]] | ||
Unzip and run the installer inside. | Unzip and run the installer inside. | ||
Revision as of 14:23, 22 September 2006
Author: Nutster (talk, contrib) |
Description
The Package and Deployment Wizard (P&DW) that ships with Microsoft's Visual Basic 6 does some things that are desirable in an installer, but has several limitations. This program takes the package created by VB6 P&DW and creates an NSI file which overcomes some of the problems that P&DW installers.
Advantages
VB6 P&DW install sets need to be uninstalled before a new version is installed. Installers created by this program do not have this limitation, however, if the list of executables or libraries changes, then uninstallation is recommended.
The generated NSI file will make a good installer when compiled, but its real advantage is that it builds most of NSI file required to install your Visual Basic application. This is an excellent starting point for creating a very robust installer and making sure that you don't miss anything.
Usage
Download and unzip the installer linked below. Run the installer. It will create a folder in the Start - Programs folder called NCC which will have a sub-folder of VB6 Converter. The program to run is in this directory.
First from within VB6, run the P&DW to create the package. It would probably be easiest to create a single CAB file, but the CAB file gets ignored by VB6 Converter. When the installation set has been created, exit VB. Next run the Converter as described above. When run, VB6 Converter will ask for the VB6 Package directory with Setup.lst file that was created by VB6 P&DW and then ask for the filename and path to save the resulting NSI file. In a short while the program will have created NSI file (the progress can be tracked by pressing Show Details).
Now you can either compile the resulting NSI file to create a pretty good installer or edit it first and add your custom touches. If you make a mess of things you can always re-run the program and get back to the default installer script for your package.
If you want to recreate your installer after making some changes to your VB application, just compile it (Make EXE in VB) and re-compile the script.
Limitations
This program is intended to only work with VB6 using the Package and Depoyment Wizard. This program has only been tested with NSIS 2.19-2.20 with Microsoft Visual Basic 6 Service Pack 6 running on Windows 98 with a Pentium II Celeron processor. I would appreciate any feedback others may have testing this on other systems. This is especially true if it does not behave as documented and possible solutions would be nice as I have limited access to other systems.
Future Direction
I plan to have the program read the VB project file instead of needing to read the setup list file. I would also like to be able to recognize and support other versions of VB.
Download
Download the current version zipped: Media:VB6-NSI-Setup.zip
Unzip and run the installer inside.
Contents
This zipped file contains the installer for VB6 Converter. The installer installs: the VB6 Converter program (written in NSI Script), the VB6 Converter.nsi source (optional) and the documentation (optional). I think it is kind of cool that I can create a NSI script that creates other NSI scripts.