mIRC Home    About    Download    Register    News    Help

Print Thread
#166034 05/12/06 04:17 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
I wanted to use $version for my script, if ($version =< 6.21) { do stuff } .. and when i check what $version return it returnds 6.2 . shouldent that be 6.21 ?

sparta #166038 05/12/06 04:25 PM
Joined: Nov 2004
Posts: 822
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 822
You did update, right?

Jigsy #166039 05/12/06 04:27 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Yes, i downloaded a new file today to see if it still returns the same value, and yes it does.. echoing my version: 6.2 .. used: //echo echoing my version: $version in status window.

;---------- Edited

I downloaded the file from:

mIRC 6.21 in the UK "first link", and that one gave the answer 6.2 . and you asked if i updated, so i tryed to download the file from the link mIRC 6.21 in Australia, that one gave me the right version.

Last edited by sparta; 05/12/06 04:38 PM.
sparta #166049 05/12/06 05:11 PM
Joined: Nov 2004
Posts: 822
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 822
//echo -a $readini($mircini, about, version)

See what that returns.

Last edited by Jigsy; 05/12/06 05:11 PM.
sparta #166055 05/12/06 05:39 PM
Joined: Dec 2002
Posts: 3,842
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,842
I downloaded mIRC from both UK links and installed each in a separate empty folder, both return 6.21 for $version for me here.

Khaled #166056 05/12/06 06:05 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
Thanx for looking in to it, it didnt for me, maybe cos i just copyed mirc.exe, then i overwrited the existing one? but as i wrote befor, solved now smile

sparta #166084 06/12/06 02:51 AM
O
Om3n
Om3n
O
mirc.ini contains...

[about]
version=6.2

By copying over the new mirc.exe you kept an old unaltered mirc.ini with the old version number in it. Updating and selecting to 'backup' and 'keep settings' during the installation should update mirc.ini where neccersary. (afaik)

Last edited by Om3n; 06/12/06 02:53 AM.
#166110 06/12/06 02:42 PM
Joined: Feb 2003
Posts: 3,412
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
All i had to do was to delete mirc.exe, then replace it.. mirc.ini is still the same, and now the version show ok, mirc.ini keeps track of files that should be loaded, and stuff like that, the version is in mirc.exe it self, so dosent mather if u keep ur old mirc.ini .. smile in my "old" mirc.ini

[about]
version=6.21

so mirc.exe write that line it self.. "i did only replace the exe file, nothing more"

sparta #166152 07/12/06 03:24 AM
O
Om3n
Om3n
O
Yeah i figured mirc had the version details in the exe, most software does. Just thought maybe it was reading from the ini for some reason, as it seemed to be the only solution that fitted.


Link Copied to Clipboard