Creating an installation program is an indispensable process for building a project. There are many installation software on the Internet, which can be described in a variety of ways~~~~
Here the author introduces the simplest installation method, which is to use the packaging program that comes with VB for packaging. Although it is relatively common, there are many tricks inside. I believe that not many people know this! ! (Please be sure to watch to the end, the fun is to come) Okay, no more nonsense, let’s get to the point.
①Run the packaging wizard, as shown in the figure below:
②Click the "Browse" button and select the project to be packaged. Then click the "Package" button (only packaging will be introduced here, other functions will not be introduced). Enter the next page, as shown below:
③ Select the type of package to be packaged. For ordinary EXE projects, just select "Standard Installation Package". For controls and the like, it depends on where they are used. If it is used on a web page, please select "Internet Software Package" and then click "Next" " button. As shown below:
④Select the location where the package file is stored (needless to say more about this), as shown in the figure below:
⑤The wizard automatically finds the controls, DLL and other files used in the project. You need to go to the project to check to see if all the files included are complete. You must bring the files of the third-party controls, otherwise you will be in trouble~ ~~, and then click Next, as shown in the figure below:
⑥Select the file type for packaging. If you use a CD for distribution, select a single compressed file. If you use a floppy disk for distribution, select multiple compressed files. (Of course, this is not absolute. You can also select multiple compressed files using a CD, but maybe no one does this~~~). Then click "Next". As shown below:
⑦ Determine the title of the installation program, which is the text displayed on the installation background. Then click "Next" as shown below:
⑧Here you can set which items are displayed in the "Start Menu". For example, you can add and uninstall program items, you can select the "New Item" button, and then enter $(WinPath)/st6unst.exe -n in the "Target" column "$(AppPath)/ST6UNST.LOG", including double quotes. Select "$(WinPath)" in the Start project without the double quotes. Then click OK, as shown below: