It is also the easiest way to create an installation file

  
installation file without performing programming to perform data distribution during installation. However, the installation file is not available to anyone, which requires some programming knowledge. Therefore, if ordinary computer users want to make such a distribution distribution installation file, they need a foolish method. For users who don't understand programming, there is still a way to go around programming the installation files. For example, using the compression software WinRAR, you can create a SETUP.EXE installer similar to the commonly used software, implement double-click to perform automatic installation, display the copyright confirmation permission page, specify the software data installation directory, and finally automatically run the specified program and other functions to achieve Programming can also make the dream of installing software. Suppose we need to automatically install a batch of demo materials in a folder, we hope that the finished software can automatically extract the PPT data into a specific folder, and then execute one of the automatic demonstration procedures. ABC.EXE. 1. Creating a basic self-extracting installation package first requires converting this information into a EXE file that can be braked. This process uses a special feature of WinRAR, which is self-extracting compression format generation. Store all the materials used for production in a fixed folder, then use Ctrl+A to select all the files in the folder, right click on the selection, and select “ldRar→ in the right-click menu to add to the compressed file. ”Options. In the pop-up dialog box, select the “General” tab, click the “Compression mode” drop-down box to select the appropriate compression method, and select the “Create self-extracting format compressed file” option under Compression Options. At the same time, you can see that the file type in the "compressed file name" box becomes the EXE type, and here the file is given a suitable main file name (such as "demo file"). Then click on the “Advanced" tab (Figure 1). 2. Set advanced installation file parameters In the next step, we will set some window information necessary for the installation file. For example, installation path settings, accompanying operation prompts, installation software icon images, etc. In the “Advanced” parameter setting window, click the “Self-extraction option” button (Figure 2) to enter the “Advanced Self-Extraction Options” setting window. This is an important place for us to define the installation files. There are many parameters that need to be set through this window (Figure 3). Set the software installation path In the “Extraction Path” box of the “General” dialog box, set the file to be automatically decompressed to where. The decompression path can use the default Program Files folder of the system, or you can enter the absolute path to define the folder released by the software (Figure 4). Tip: The default generated installation path cannot be modified, but we can customize the installation path as follows. Right click on the EXE self-extracting file and select “Open with WinRAR”. Click the toolbar "Comment" button to open the edit dialog, modify the "<;Path=<your installation path>” this line of commands (such as: change your installation path > to E:\\MyTest ), click & ldquo; OK & rdquo; close WinRAR (Figure 5). Double-click to open the EXE installation file, you can see that the "target folder" is already the new path you set. Manual Call Setup This step setup automatically displays a manual during the installation process. Click to switch to the "Settings" tab window, where you can specify whether or not to automatically execute the program before and after decompression. If you want to run something such as a description program, a description file, etc. before decompression, you can enter the name of the file in the "Run before decompression" box, which needs to be automatically displayed before decompression. Description.txt”;“Unzip After running the box, you need to enter the name of the program that runs after the package is decompressed. In this example, we want to run ABC.EXE to automatically demonstrate the main program. We enter ABC.EXE (Figure 6). Unzip the prompt icon settings This step sets the prompt information during the installation process as well as the icon or logo of the installation file. Switch to the “Text & Icons” tab to set reminder and decompression pack icons when unzipping. The entered “self-extracting file window title” will appear in the title bar when unpacking, and the “text displayed by the self-extracting file window variety” will appear in the decompression prompt of WinRAR. If the text of the prompt is too long, you can also enter it into the text file in advance, and click the "Load text from file" button to load the text below. “Loading a self-extracting logo from a file” is a logo that loads a BMP format image as an installation file, and “Loading a self-extracting file icon from a file” is an icon that loads the ICO format as an icon for the installation file (eg Figure 7). The copyright license information is set under the “License” tab. By setting the “License Window Title” and “License Text” items, you can define the copyright prompt information page when the installation file is run. Get the same copyright notice page as professional security software. If the license text is too long, you can load the pre-set text file by clicking the "Load text from file" button. After the above settings, click the "OK" button to perform the compression operation, and you can get the files for automatic installation. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved