I often see how my friend asks how to make an installer, generate an error with a program that generates a certain software package. Just a few days ago, I introduced a good installation and production tool, introduced it to you here, I hope to help everyone.
Let's take a top priority - WinRar. Yes, I just make installations with WinRAR. It is so powerful if there is no setup factory stream, but for general, the requirements are not very high installation operations. First of all, it is green installation, does not generate additional information, and the generated installation file is small; second, WinRAR can download free to download online; third, you can use batch files to complete a variety of complex operations, such as copy files , Create a directory, registration control, etc., as long as the DOS command can do, even the DOS command can be achieved (create shortcuts with parameters). In short, its function is also very powerful. Here is how to teach you how to make a simple installer, the masters don't have to look. I use WinRAR 3.20. The previous version, some features are incomplete.
The program needs to complete the following operations during the installation process: register a few controls, copy a file to the specified directory, create a shortcut with parameters at the desktop. Although it is very simple, it is hard to break it, because other installation software will pay, and I can't solve my problem. Well, running questions, continue.
The first step is to compile the program to be installed into an EXE file. Step 2, you have to know which COM files have been called, there are a lot of methods. It is really not to run on someone else's machine. Look at the file, search it on your machine, copy to the installation directory in. Put the files and EXE files to be copied in the installation directory. Figure:
In the third step, write batch files, this batch is relatively simple (as shown below). In fact, use the DOS command, you can write a very complicated batch command, the function is strong, don't have to say more. The BAT file is also placed in the installation directory.
The fourth step, okay, began to pack it. Select the installation directory. Select "Add to Compressed File" in the Right-click menu (this will have this after installing WinRAR), select "Create Self-decompressed Format Compressed File".
The fifth step, the Point Senior tab, select "Self-Solution Options".
In the sixth step, set the decompression path of the file. Set the file to run after decompression.
Step 7, select the Advanced tab, point the button to add a shortcut. Add shortcuts, because my program is to enter parameters at startup, so it is a good way to add parameters to shortcuts. This function of adding shortcuts is also one of the main reasons I use WinRAR.
Ok, you can copy the installer to the client machine after you finish.
How is it, is it easy to use? I hope this article can help everyone's work and learning.