MSFN Forum: New testing system and files existence - MSFN Forum

Jump to content



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

New testing system and files existence Rate Topic: -----

#1 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 02 October 2004 - 06:26 AM

Hello Benjamin,

I use this to check if prog version is lower than the one to be installed (please note the use of the %PowerArc.ver% to display the version installed ;) )

Quote

description.4 = PowerArchiver 9.02 [Version Installed : %PowerArc.ver%]command.4 = %apps%\02-Utils\PowerArchiver.exe /sp- /verysilent /norestart
test.4.0 = %ProgramFiles%\PowerArchiver\POWERARC.EXE?<9.02
test.eval.4 = 0
Disabled.4 = if.false
Selected.4 = if.true
flags.4  = italic:if.false

Work fine is the file exist, but if the file don't exit the test return false.
This was not the case with the previous testing method (If I do remember the version was set to 0 if the file don't exist)

So I'm obliged to double the test like this

Quote

description.4 = PowerArchiver 9.02 [Version Installed : %PowerArc.ver%]command.4 = %apps%\02-Utils\PowerArchiver.exe /sp- /verysilent /norestart
test.4.0 = %ProgramFiles%\PowerArchiver\POWERARC.EXE?<9.02
test.4.1 = !%ProgramFiles%\PowerArchiver\POWERARC.EXE
test.eval.4 = 0 | 1
Disabled.4 = if.false
Selected.4 = if.true
flags.4  = italic:if.false

Not a real problem but I would like to know if this is voluntary or a bug

Regards

XPect


#2 User is offline   BenjaminKalytta 

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

Posted 02 October 2004 - 06:50 AM

XPect said:

Not a real problem but I would like to know if this is voluntary or a bug


No this was intention, but there is no problem to change this behaviour. Should I do this?

Benjamin

#3 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 02 October 2004 - 10:00 AM

As I said, doing 2 tests rather than 1 is not really a problem.

In the same time having only one command to test both existance and version is easier to implement.

So I should say yes, if it's not a big change for you.

Thanks

XPect

#4 User is offline   BenjaminKalytta 

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

Posted 02 October 2004 - 11:01 AM

So I changed it this way:

1. If file doesn't exists, it will return TRUE
2. If file doesn't contain version information it also returns TRUE

I also added ?size keyword to compare file sizes and ?date to compare file creation dates.
ISO 8601 date/time format is allowed like "1993-02-14T13:10:30" or "1993-02-14".
To compare only for year and month it is also allowed only to specify something like "1993-02".

Benjamin

This post has been edited by BenjaminKalytta: 02 October 2004 - 12:57 PM


#5 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 03 October 2004 - 03:59 AM

Sound really good :thumbup

Thanks

XPect

#6 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 03 October 2004 - 06:59 AM

Just one more question, the version testing works fine except on winrar 3.40 that return nothing. Have you ever try the version testing on it ?

#7 User is offline   BenjaminKalytta 

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

Posted 03 October 2004 - 07:22 AM

Which winrar file do you test? You know, winrar.exe don't contain any version information.

Benjamin

#8 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 03 October 2004 - 11:51 AM

I've tested the exe, I wil try to find another file.

Anyway (I'm not very aware on how files handle version) what sound stange to me is that when I open properties on the exe, the dialog box show version information.

That's why have asked.

Thanks

XPect

#9 User is offline   BenjaminKalytta 

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

Posted 03 October 2004 - 02:38 PM

No here it doesn't show any information but Im using version 3.30 may be that's the reason. But I found your Problem.
They left out String Version Information which will be tested here. If this is not found, nothing will be displayed ... this should be fixed by rarlab because this inconsitency is very uncommon and more than seldom to find. But I'll try to change WIHU.
Btw. what about just sending them a nice e-mail with request for providing string version information?

Edit: It will work now. Integer version information will be read if string version will not be found. But in future I'll add additional comperators ?ProductVersion and ?Fileversion to be more specific.

Benjamin

This post has been edited by BenjaminKalytta: 03 October 2004 - 03:10 PM


#10 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 04 October 2004 - 06:16 AM

I will send them a mail, but I'm not shure they will be as reactive as you ;)

Thanks for the mofification anyway.

PS: Do you have somewhere a list of all command available now ? (I've tried your doc but German is to difficult for me)
Just a list should be ok, I should be abble to understand the purpose now :D

Regards

XPect

#11 User is offline   BenjaminKalytta 

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

Posted 04 October 2004 - 06:23 AM

Quote

(I've tried your doc but German is to difficult for me)


Sorry. Im working on a new english version, but this will take some time.
Each command is listet in example install.ini as commented text.

Benjamin

#12 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 04 October 2004 - 09:34 AM

Yes of course, sometime I'm still sleeping a bit :P

Thanks

XPect

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