| function | significance | | Section | The most basic function represents a department, used to represent a component that needs to be installed, the content of the section is the last part of the program to be executed except for uninstalling, but it will be the first to check when compiling, if there is no section or function in the program, the compilation will be terminated, and the code block in the section needs to be indented to 2 spaces | | Function | The executed function also needs to be indented, its function name will be recognized, if it is recognized as a special name, it will be carried out under specific circumstances, which will be explained below | | SectionEnd | Indicates the end of the department, not indented inside the section | | FunctionEnd | Indicates the end of the function, same as above | | SetCompressor | Set the compression algorithm, the following parameters are the compression algorithm in the wizard, solid use /SOLID as the prefix, e.g., solid lzma algorithm is written as /SOLID lzma | | SetCompressor | Set the compressed volume size, followed by a number, and it usually doesn't matter if you don't write it | | OutFile | Decide on the path of the compiled installation package (the path of future installation packages, not which folder to put it in) | | Name | Set the name of the product, usually the application name + app version written in the first step of the wizard | | InstallDir | Represents the default installation path, which is filled in in the first line of the fourth step of the wizard, which determines the value of $INSTDIR | | ShowInstDetails | The parameters are not simple true and false, but show, hide and nevershow, which indicate that the details are automatically displayed, the user button displays the details, and the installation details are not allowed to be seen | | ShowUnInstDetails | Indicates whether the uninstallation details are displayed, and the parameters are the same as above | | BrandingText | Displays the information at the bottom of the installation package, that is, the last line of custom text in the first step of the wizard, which can accept two parameters, one is the text to be displayed, and the optional parameter is /TRIM, which can determine the direction of text alignment (LEFT, RIGHT or CENTER, the default is LEFT, /TRIMLEFT, /TRIMRIGHT or /TRIMCENTER must be written, without any separation in between) | | SetOutPath | It can only be written on the first line of the Section, which determines the installation location of the component represented by the Section, different from InstallDir, SetOutPath allows different components to be installed in different subdirectories of the total installation directory, it is recommended to set it to $INSTDIR\ folder with the component name (or if the components are interdependent, you can adjust the component path separately) | | SetOverWrite | It can only be written in Section, which is used to set whether to overwrite when installed, and the parameters can be set to always overwrite (on), never overwrite (off), overwrite when newer (ifnewer), overwrite when the file content is different (ifdiff) and try to overwrite (try), corresponding to the fifth step of the wizard > editing directory items | | File | It can only be written in Section, which means that the Section contains and packaged files, and the /r escaping parameter represents files and folders containing subdirectories, and the corresponding wizard steps are the same as above. /x parameter is used to exclude files, you can write /x "*.ico" "xxx\*", which means to exclude ICO files and exclude all files in the xxx subdirectory, corresponding to step 5 of the wizard | | CreateDictionary | Create a folder followed by the full or relative path of the folder | | CreateShortcut | Create a shortcut, the first is the path of the shortcut (suffix .lnk), and the second is the path of the shortcut to the file, corresponding to the lower part of step 6 of the wizard | | WriteUninstaller | Create an uninstaller followed by the path name of the uninstaller | | WriteRegStr | Write to the registry, which generally does not need to be changed, just follow the wizard to generate | | Delete | Usually in the uninstall section, delete a single file, followed by the path of the deleted file, because it is a single file, you cannot add /r | | RMDir | Usually in the uninstall section, delete the directory and all files in the directory, followed by the path of the deleted directory, the first generally needs to manually add /r, the wizard did not add it to you, if you don't add it, it will uninstall the residue, it is best to write this command once for each subdirectory, you have to add /r, and finally remove the general directory RMDir "$INSTDIR" | | DeleteRegKey | To delete the registry information, you can generally follow the wizard to generate it | | SetAutoClose | It can only be written in the Section, indicating whether it will automatically jump to the completion interface after the installation is completed, with the parameters of true and false | | AutoCloseWindow | It doesn't seem to have any effect, the function seems to be the same as the previous one, but it can be written outside the section, and the parameters are the same as above | | Messagebox | The message box can only be written in Section or Function, there are many parameters, including display information, display warning, ask yes no, ask okcancelretry, etc., enter Messagebox in VNISEdit to get a list of all parameters, and then connect the content displayed in the message box | | Abort | blocking, waiting for the user to answer | | HideWindow | Hidden window, usually used to uninstall Section, the uninstaller deletes itself first, then deletes other files (yes, the program is still running), and automatically closes the window after deletion |
|