How to obtain the user-selected installation language in the InstallShield installation package
Initial installation: notinstalled
Modify, fix, or delete:installed
Delete (uninstall): Remove
Maintenance or Repair:installed and not REMOVE
Minor version upgrade:Is_minor_upgrade
Large version Upgrade:Is_major_upgrade
The above applies to InstallShield basic MSI Engineering and InstallScript MSI project.
How to identify initial installation, maintenance mode and uninstall in InstallShield Project
Basic MSI project, through condition to determine the installation mode: First installation: not installed Repair maintenance: Installed uninstall: remove= "All"
Note: The condition in the InstallScript MSI Project also works with basic MSI
InstallScript Project:
Judging by the system variable maintenance, the variable value is false at the first installation, or true if repair maintenance or uninstall is used.
For example, the code can write this: if (! maintenance) then//This runs the first installation of the execution code endif; How to accept the protocol by default in the user protocol interface in the InstallScript project
The user protocol interface is available in six dialog boxes: Sdlicense,sdlicense2,sdlicenseex,sdlicense2ex,sdlicensertf and sdlicense2rtf.
The method we modified is to take advantage of a Boolean type parameter in the above dialog box, where the functions are inconsistent (where sdlicense and sdlicensertf do not have this parameter).
In InstallShield 2010, the modification method is as follows:-SdLicense actually calls Sdlicenseex, you can specify that the last parameter of Sdlicenseex is true.
-SdLicense2 calls Sdlicense2ex, you can specify that the fifth argument is true.
-Sdlicenseex directly specifies that the fourth argument is true.
-Sdlicense2ex directly specifies that the fifth argument is true.
-Sdlicensertf calls Sdlicenseex, you can specify that the fifth parameter of Sdlicenseex is true.
-Sdlicense2rtf calls Sdlicense2ex, you can specify that the fifth parameter of Sdlicense2ex is true. how basic MSI project types in InstallShield invoke InstallScript scripts
A. First in the installation Designer/behavior and Logic/installscript view, select files click the right mouse button to select "New Script File", A Setup.rul file is generated by default and has a MyFunction function declaration and.
B. After that we add a line of code to the MyFunction function: MessageBox ("MyFunction", information); Of course, you can also modify the function name to replace it with a more meaningful string.
C. In installation Designer/behavior and logic/custom actions and sequences view, select the top of custom actions click the right mouse button to select "Custom Action" Wizard "(The custom action here is often referred to as a CA), follow the wizard step-by-step instructions. The first interface is the Custom Action Wizard welcome interface. In the second basic information interface, select the CA's name, and comment can be ignored. In the third action type interface, select Run InstallScript Code in the Drop-down menu for type. (Here you will find that you can invoke managed code, other executable programs, and jscript,vbscript, etc.) in the fourth action parameters interface, the MyFunction selected in the Drop-down menu of source. (If you have more than one function declaration in the script Setup.rul, you will find that the interface will be displayed to the Drop-down menu) and follow the default settings until the finish is clicked. D. In the same tree structure, Sequences/installation/execute, select Execute Click the right mouse button to select Insert, you will see in C you add the CA, select your CA, and then set condition. (Note If you want to perform at install time: not installed; uninstall execution: Installed)
E. The location of our CA in sequence can be adjusted according to the situation.
CAs can be invoked in sequence or executed in individual dialog. InstallShield Learning Website Recommendation
InstallShield Tool Learning is also a gradual process, begging for their own, so we recommend a few good places.
http://community.flexerasoftware.com/This is the original technology forum, Nature is also the best, but some friends may find English web site inconvenient.
http://kb.flexerasoftware.com/the original Knowledge Base, if in-depth study, you will fall in love with her.
http://www.appinstall.cn/, the new Chinese installation and packaging site, is not bad, but currently not many registered users, before the Jarson Chinese forum for some reason has been closed.
Also recommend a few friends blog
Stefan Krueger http://msmvps.com/blogs/installsite/default.aspx
Rod Maupin http://www.installationdeveloper.com/
Sea Goddess Http://www.cnblogs.com/Cindy_weiwei
Wilson Ting http://www.cnblogs.com/sabrinahuang/
Reprint: http://www.cnblogs.com/installshield/