![]() ![]() -Value: The value we want to store in the variable.-Name: The name of the variable that we want to create.In this case, the 'Set Installer Variable' action will need the following parameter to work: We will be presented with a new dialog window where you must enter the needed parameter for the action. We will select 'Installer Actions' on the left, and 'Set Installer Variable' on the right. -Set: edition_type=enterprise (if a license file is found)Īfter selecting 'Add', we will find a new dialog window where you can select the type of action that you want to add to this step.-Set: edition_type=trial if a license file is not found).We need to set the value depending on which rule is met:.If the rule is met, the action will be performed if it isn't met, the action will not. You can think about a rule like a condition that needs to be met to allow the related action to be be executed. We will set the variable with rules that will check if there is a license file present. So, how do you set the right value for the variable? The answer is: with InstallBuilder rules. - enterprise: If the installer finds a license file, it will be an 'enterprise' edition.ĭepending on which of the above values is returned, the installer will install the application as either an 'Enterprise Edition' or a 'Trial Edition'.- trial: If there is not any license file found, it will be a 'trial' edition.We will call this variable 'edition_type', and it will store one the following values: Now, we need a variable in which we will store a value that will depend of whether or not there is a license file found. To do so, use one of the following methods: Now, start InstallBuilder and open the Demo project. Of course, this is a very simple case, but it is a good example for demonstrating how rules can work for you. ![]() - If a valid license file is not found on the user's desktop, the product will be installed as a “Trial Edition” and the installer will inform the user of that.If that is the case, the installer will report that it is deploying an “Enterprise Edition”. - Your product will be installed as an “Enterprise Edition” if the installer finds a valid license file, “product.lic”, in the user's desktop folder.Imagine that you want to distribute your product offering with the option of installing it for a time-limited evaluation period, or installing it as a registered “Enterprise Edition”, depending on whether or not the user has a valid license key on his or her machine. We will start with GUI in our first, simple example for a fictitious commercial application for Windows. If you don't already have InstallBuilder installed on your system, you can download the latest version from. This article will explain how to implement conditional rules in your actions, how to select the appropriate rule for each case, and how this can help you to optimize your project and avoid duplicating code. You can set not only one, but a set of multiple conditions that can be evaluated with an AND/OR group logic statement. It allows you to set conditions related to an action or an action group at any step of the installation, and they will be performed only if the condition is met. ![]() Rules in InstallBuilder allow you to determine when to perform certain actions depending on the circumstances, variables and user inputs that are involved in the installation. Here's another example of common functionality: You may want to discard or accept user input depending on whether it meets certain criteria. Or you may want to modify or add some content to a file, but only if it is needed (you don't want to duplicate configuration settings). For example, maybe you need to copy certain files only if the target platform is Mac or Linux, but not if it is Windows. Its purpose is the same as the property inside the tag, but allows you set a different image for each parameter page.The installation of your application does not have to be a rigid, linear sequence of actions. : When using custom inside the tag in your project file, it displays a custom PNG or GIF image at the left side of the installer page associated with this parameter. If it is set to 0, the page not only won’t be displayed but also the associated command line option won’t appear in the help menu. : Whether or not to show the page to the end user (it can still be set through the command line interface). If none is provided, it will default to the value of the field. : Command line option associated with the parameter. If none is specified, the field will be used instead. : Title that will be displayed for the corresponding installer page. : Default value, in case one is not specified by the user. This will be used to create the corresponding installer variable and command line option.īecause of that, it may only contain alphanumeric characters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |