XPect Posted October 2, 2004 Share Posted October 2, 2004 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 /norestarttest.4.0 = %ProgramFiles%\PowerArchiver\POWERARC.EXE?<9.02test.eval.4 = 0Disabled.4 = if.falseSelected.4 = if.trueflags.4 = italic:if.falseWork 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 thisdescription.4 = PowerArchiver 9.02 [Version Installed : %PowerArc.ver%]command.4 = %apps%\02-Utils\PowerArchiver.exe /sp- /verysilent /norestarttest.4.0 = %ProgramFiles%\PowerArchiver\POWERARC.EXE?<9.02test.4.1 = !%ProgramFiles%\PowerArchiver\POWERARC.EXEtest.eval.4 = 0 | 1Disabled.4 = if.falseSelected.4 = if.trueflags.4 = italic:if.falseNot a real problem but I would like to know if this is voluntary or a bugRegardsXPect Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted October 2, 2004 Share Posted October 2, 2004 Not a real problem but I would like to know if this is voluntary or a bugNo this was intention, but there is no problem to change this behaviour. Should I do this?Benjamin Link to comment Share on other sites More sharing options...
XPect Posted October 2, 2004 Author Share Posted October 2, 2004 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.ThanksXPect Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted October 2, 2004 Share Posted October 2, 2004 (edited) So I changed it this way:1. If file doesn't exists, it will return TRUE2. If file doesn't contain version information it also returns TRUEI 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 October 2, 2004 by BenjaminKalytta Link to comment Share on other sites More sharing options...
XPect Posted October 3, 2004 Author Share Posted October 3, 2004 Sound really good ThanksXPect Link to comment Share on other sites More sharing options...
XPect Posted October 3, 2004 Author Share Posted October 3, 2004 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 ? Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted October 3, 2004 Share Posted October 3, 2004 Which winrar file do you test? You know, winrar.exe don't contain any version information.Benjamin Link to comment Share on other sites More sharing options...
XPect Posted October 3, 2004 Author Share Posted October 3, 2004 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.ThanksXPect Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted October 3, 2004 Share Posted October 3, 2004 (edited) 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 October 3, 2004 by BenjaminKalytta Link to comment Share on other sites More sharing options...
XPect Posted October 4, 2004 Author Share Posted October 4, 2004 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 RegardsXPect Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted October 4, 2004 Share Posted October 4, 2004 (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 Link to comment Share on other sites More sharing options...
XPect Posted October 4, 2004 Author Share Posted October 4, 2004 Yes of course, sometime I'm still sleeping a bit ThanksXPect Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now