Say I want the user to be able to specify several server settings on a custom page. I have all my validation actions working well for this page, such as the server port seen below. The only parameter that seems to be having validation issues is the number of threads setting. It always evaluates to true and does not warn the user, even if the value is out of range. I use a stringParameter for the maximum number of threads and then compare that to the stringParameter of user input number of threads, as follows.
Is there something wrong with the way I am using compareValues here? Should server_threads and server_threads_max not be stringParameters? I need the ability to set server_threads_max at build time. Testing this validation code in the debugger, using "Evaluate XML Code" during this custom page seemed to work as I expected (popping up a dialog if invalid input). But, the installer itself, always evaluates this to true and never shows the warning.
So, testing this out, wojciechka is correct that this should be "or" logic. However, the greater than comparison still fails, even on its own. Stepping through the debugger, it doesn't even appear to evaluate this rule. This is using Enterprise 8.1.0 builder-cli.exe.
asked 03 Apr '12, 22:44
By default multiple rules are evaluated so that the action is run when all actions are true. You can change it by adding
answered 04 Apr '12, 03:58