MSFN Forum: setting description depending on test - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

setting description depending on test Rate Topic: -----

#1 User is offline   t2x 

  • Group: Members
  • Posts: 3
  • Joined: 04-July 04

Posted 15 January 2005 - 06:32 AM

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


#2 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 15 January 2005 - 07:26 AM

This is currently not supported, but shouldn't be hard too implement.
Will be supported may be in future versions.

Benjamin

#3 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 16 January 2005 - 08:47 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy