Some time ago I completed the localization of several software and wanted to package them up. However, I was so stupid that I was a very good bird, I had to go online to find an article about the installation program. unfortunately, I couldn't find it:-(I had to go to the huajun Software Park to find the software that made the installation program, and downloaded a lot of software... EasySetup 2.08 CreateInstall Setup Generator Installer VISE Simplified Chinese version Inno Setup Compiler Chinese edition Install Maker Pro ... After a long period of study and trial, I found that the software above (including most of the software for download on the Internet) is only a few easy-to-use software. for me, Install Maker Pro and Inno Setup Compiler Chinese version, in fact, most of those Dongdong are more suitable for packaging E-Text software (because the generated installer interface font is E text body, it will look ugly to write Chinese characters (including Install Maker Pro). Fortunately, Inno Setup The font of the installer generated by Compiler Chinese version is :::-) nice looking! In addition, it generates the WIN2000 installation interface, while the Install Maker Pro is the traditional WIN9X interface. Combined with ease of use and comparison of the generation effect, I recommend using Install Maker Pro and Inno Setup Compiler Chinese edition, and the following tutorial will introduce the use of the two software: ◎ Inno Setup Compiler in Chinese Http://www.gnrsu.cn Install Inno Setup After the Compiler Chinese edition starts the software (see Figure 1 ):
Figure 1 Next I will take the ePSXe1.50 Chinese Version installer as an example to introduce the production process. I will first put all the files to be packaged into an empty folder for use. (My files will be placed in: D: \ pp-work) Select to create a new blank script file and press OK: (see figure 2)
Figure 2 Follow the steps below: (see figure 3) Figure 3 Fill in the corresponding stuff in the corresponding project, (I have filled in the ), follow the next step: (Figure 4)
Figure 4 It is not difficult to fill in the corresponding J field in the corresponding project. In the drop-down menu of the basic target directory of the application, there is a custom installation path. in my case, install the file: In C: \ Program Files \ ePSXe, fill in the corresponding content for the others. Then, of course, the next step is: (figure 5)
Figure 5 In this step, you must note that the main Program file (the browsing method is recommended) is filled in at 1 in the figure, and then add the file to be installed in C: \ Program Files in Files \ ePSXe. add directories one by one ). after adding all the directories to be installed, remember to edit the directories to be added. Otherwise, all the files will be installed in C: \ Program. Files \ ePSXe! Step: select the added directory in 2 and click Edit (see figure 6)
Figure 6 Fill in the name of the subchecklist at Step 1. There are other options in step 2. You can install other files in other directories such as WINDOWS and SYSTEM (see figure 7)
Figure 7 The other directories are set in the same way, followed by the next step: (see figure 8)
Figure 8 Here is also the corresponding fill, NEXT :( see Figure 9)
Figure 9 Clearly, you don't need to talk about it. If you have completed the NEXT step, the program will ask you if you want to compile the script. If you want it to work, let it compile, a setup. EXE file! If you want to modify it, press "no". You can modify the script (for example, add information in the Registry and add an option in the Program Group). Of course, you need to know its syntax! As soon as you hear the syntax, you may be afraid. In fact, its syntax is not difficult. You can understand it with help. as long as you have learned a little bit of programming. besides, most of the items are automatically generated. I want to add a shortcut in English in the program group and modify the working directory of the shortcut! Otherwise, the program cannot work after being started in a shortcut! (Because this program needs to find other files in the shortcut working directory! We recommend that you make the installation program and modify the working directory to avoid exceptions) Okay, the generated script format is like this in the program: (see figure 10)
Figure 10 You can directly modify it in it. You will see that the syntax is highlighted and J is easy to use! Now, we need to modify the settings as follows: Before modification: ... [Icons] Name: "{Group} \ ePSXe 1.50 Chinese version"; Filename: "{app} \ p-epsxe.exe" Name: "{Userdesktop} \ ePSXe 1.50 Chinese version"; Filename: "{app} \ p-epsxe.exe"; MinVersion; Tasks: desktopicon ... After modification: ... [Icons] Name: "{group} \ ePSXe 1.50 Chinese version "; Filename:" {app} \ p-epsxe.exe "; WorkingDir:" {app }" Name: "{Group} \ ePSXe 1.50 English version"; Filename: "{app} \ epsxe.exe"; WorkingDir: "{App }" Name: "{userdesktop} \ ePSXe 1.50 Chinese version"; Filename: "{app} \ p-epsxe.exe "; MinVersion: 4, 4; Tasks: worker topicon; WorkingDir: "{App }" ... Finished! After compilation, the installation program is created! As for the syntax, the Inno The Setup information is found. It is very detailed. To add Dongdong, just draw a gourd based on the sample. If you want to add information in the registry: ... [Registry] Root: HKCU; Subkey: "Software \ My Company"; Flags: uninsdeletekeyifempty Root: HKCU; Subkey: "Software \ My Company \ My Program"; Flags: uninsdeletekey Root: HKLM; Subkey: "Software \ My Company"; Flags: uninsdeletekeyifempty Root: HKLM; Subkey: "Software \ My Company \ My Program"; Flags: uninsdeletekey Root: HKLM; Subkey: "Software \ My Company \ My Program"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app }" ... That's all. (I also drew a gourd image for it, but the Inno The Setup information is from E. If it is not good, it may seem like eating gossip. However, it is not difficult to stick it up to learn something! J) Okay, thank you for reading my tutorial (or my first tutorial !), This is the first article. Read my concise tutorial on Installation Program Creation (II). I will introduce Install Use of Maker Pro. J Supplement: As long Add "ubunturesinstallin64bitmode = x64" to the setup script. You can use this statement. It has been tested. setting this parameter will enable the 64-bit installation path to C: \ Program Files \ |