NSIs graphic tutorial 1 for beginners

Source: Internet
Author: User

Introduction to NSIs:
NSIs is the abbreviation of "Nullsoft Scriptable installation system". It is a free Win32 installation and uninstallation system. It has the following features: simple and efficient scripts and low system overhead; of course, you can install, uninstall, set system settings, decompress files, and so on. For more functions, see the blue Internet NSIs help document.
For the NSIs tutorial, blue Internet is an NSIs expert. Her NSIs help document is an NSIs Bible. For Beginners, the biggest headache is a lot of unintelligible code, which is nothing more than a book. Due to this, we hope NSIs experts will not laugh at this basic tutorial. If not, we welcome criticism and correction for perfection. We also hope to pave the way for beginners.

Tools:
  NIS edit + Nullsoft installation system (NSIs)
[Both software can be downloaded from the century website]

Ideas: Script wizard + modify code = personalized installation package

Procedure:

I. Use the Wizard to create the installation package:

1. Install the above two models, start NIS edit, and choose "New Script: Wizard"> "Next" in the "file" menu. 1:


2. Set application information, such as the software name, version, and publisher. 2.
Of course, you can leave it blank for the most website. If it is set, the installation package will generate an "Internet shortcut" for the corresponding website ".

Diagram
3. Set program options, such as the installation package icon, installation program file, installation package language [select "simchinese"], user graphical interface, and compression method,
You can select the default value, or click the corresponding project button or drop-down menu to change the settings, as shown in figure 3.

Diagram
4. Set the installation directory and authorization information. 4. "Next ":
5. Select the program file, that is, the file to be packaged. The default "mainsection" can be used ",
You can also change or create a group as needed,
If there are many groups,
You can also set whether to "allow users to select components to install", 5.

Diagram
After adding a file, select the file to be packed, 6,
Complete the page in Figure 5 returned after the automatic configuration is completed, and perform the next step.

Diagram

6. Set the folder name and shortcut in the Start Menu. Here we use the default value. 7. Click "Next ":

Diagram


7. Specify the program to run after installation. Use the default value above and set relevant running parameters and descriptions,
If you are as lazy as you are, or do not want to install or run any program, leave it blank. 8:

Diagram
8. This step contains information about the uninstall program, such as the prompt during uninstallation and the uninstallation icon.

Diagram
9. Now the Wizard is complete. 10. Select "Save script", "convert file path to relevant path", and "compile script"

Diagram
The following message is displayed: Save the script path and automatically compile the script. You can press or F9 to run the installer for preview. The installation package 11 generated by the Wizard is shown in the following figure:

Diagram


Ii. modify the code to personalize the installation package:

10. Select the modifiable items:

1) software logo [11A], installation package title [fig 11B], fig 11C, Fig 12, Fig 13

Figure 11 go upstairs

Figure 12:

Diagram


Figure 13:

Figure 2) pop-up Screen

11. modify the code

1) modify the software logo: Add the following code after the source code "Mui Settings:

 

 
The following is a code snippet:
! Define mui_welcomefinishpage_bitmap "G: \ temp \ pwr.bmp"
Note: the path of the bitmap is enclosed in quotation marks. The bitmap size is about 165*298.

14) modify the installation package title and add the following code in the same position as above:
 

 
The following is a code snippet:
! Define mui_welcomepage_title "\ r \ n release 2All 5.35d Chinese version"
  
Note: \ r \ n indicates a line feed.
  
Upstairs 14

3) modify the description in Figure 11c and add the following code as above:

 
The following is a code snippet:
! Define mui_welcomepage_text "pdf2all is a set of converters that can be converted to doc2pdf (word to PDF), xls2pdf (Excel sheet to PDF), ppt2pdf (PowerPoint to PDF ), mdb2pdf (access to PDF), ps2pdf (postscript to PDF), 4102jpg (PDF to JPEG), 4102bmp (PDF to BMP), 4102tiff (PDF to TIFF ), pdf2eps (PDF to EPS), merge Merge (merged pdf file), and merge 2ppt (PDF to PowerPoint ). \ R \ n software: Gao fangyan (raindy) \ r \ n \ r \ N $ _ click"
  
14.
4) for the modifications in figure 12, in the source code:
 
The following is a code snippet:
Showinstdetails show
Showuninstdetails show

Add:

 
The following is a code snippet:
Brandingtext "Software Localization: raindy )"

As shown in

Diagram

After adding the "Chinese description", you only need to add the "Chinese description" in the source code:

 
The following is a code snippet:
; Finish page
Add:
 
The following is a code snippet:
! Define mui_finishpage_showreadme "$ instdir \ Definition description .txt"
! Define mui_finishpage_showreadme_text "Chinese description"
Results

Diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.