Jump to content

can't understand test.eval


rbianco

Recommended Posts

Hello all.

In my WIHU ini, i want an item to follow the selection state of a previous item.

Example: in this code

description.6 = XnView v1.74
command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-
selected.6 = 1, inherit

description.7 = XnView v1.74 - registry settings
command.7 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.reg
test.eval.0 = selected.6
selected.7 = if.true
disabled.7 = if.false

i want the 7th item to auto-check when i check the 6th one; and vice-versa, i want the 7th to uncheck when i uncheck the 6th.

I thought i understood the test.eval thing, but i can't make it work. :no:

Can i do that with WIHU, without using a child entry in my menu?

What is the right syntax?

Thankyou.

Link to comment
Share on other sites


Hello,

Test.eval is designed to test a file (existence or version) or a registry key (existence or value), not to test another item in wihu.

If you want to chek 7 if 6 is checked, use subitems like this:

description.6 = XnView v1.74

command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-

selected.6 = 1, inherit

description.6.0 = XnView v1.74 - registry settings

command.6.0 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.reg

I think this will do what you need ;)

Another tip, you can do this also without showing the second command to the user, to be shure that the second one is not accidentaly uncheked by hidding the second command, just had this line:

hidden.6.0=1
Link to comment
Share on other sites

XPect you are right, thx ;)

test.eval command should be used in conjunction with test command, wherby test may be used to compare against file existence, fileversion, filetime, registry key/value (existence). Please refer my manual or example install.ini for detailed information about how to use it.

Benjamin

Link to comment
Share on other sites

  • 2 weeks later...
If you want to chek 7 if 6 is checked, use subitems like this:

You're right, but i'd prefer to avoid bold-fonts for a pure aesthetic reason: each category -> bold, each software -> regular. ;)

Using sub-items means that the main item gets bold font... isn't it?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...