Jump to content

setting description depending on test


t2x

Recommended Posts

Hi,

is there any way to set the description depending on a test evaluation.

I want to check if a programm is already installed and want to set different description parts then.

I tried something like this

test.0.0 = %ProgramFiles%\Ahead\Nero\Nero.exe

test.eval.0 = 0

if.true description.0=Nero ( already installed)

if.false description.0=Nero

is there any other way to achieve this?

thx

t2x

Link to comment
Share on other sites


Ok, I decided to add this feature and release a new version 2.1.13.0.

Usage example:

[environment]
WmpVersion = %SystemRoot%\System32\wmp.dll?version

[test section]

description = This is the test section description text
test.0.0 = %SystemRoot%\System32\wmp.dll
test.eval.0 = 0
description.0 = Windows Media Player is if.true("already installed.")if.false("not installed yet.")
command.0 = ..\if.true("true.cmd")if.false("false.cmd")
helptext.0 = if.true("It is not necessary to install Windows Media Player because Version %WmpVersion% is already installed.")if.false("You should install Windows Media Player now.")
disabled.0 = if.true
flags.0 = italic:if.false
selected.0 = if.false

Syntax: if.true("your text") and if.false("your text")

This conditionals are allowed in each keyword which accept strings like description.x, command.x, help.x, helptext.x and workdir.x

Please also note:

key.x, file.x, key.comparison.x and file.comparison.x isn't available any more! Please use test.x and test.eval.x instead.

Benjamin Kalytta

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...