Jump to content

New testing system and files existence


XPect

Recommended Posts

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 ;) )

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

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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

Edited by BenjaminKalytta
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Edited by BenjaminKalytta
Link to comment
Share on other sites

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

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