#198174 - 2010-03-24 06:00 PM
Tokenization Compatibility Problem
|
groon
Just in Town
Registered: 2010-03-10
Posts: 4
Loc: Canada
|
I found a thread from June 2006 regarding this issue, in which Ruud said it was fixed in version 4.52, yet here I am, seeing the problem again in versions 4.60 and 4.61
The issue is this: tokenized scripts from one version of KiXtart throw errors when executed by a later version. (Obviously, we shouldn't expect an earlier version to be able to understand a script tokenized by a later version.)
To demonstrate the problem, save this script:
@kix ?
$ExplorerKey="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer"
$value=readvalue("$ExplorerKey","EnableAutoTray")
if @error=0
$rcode=writevalue("$ExplorerKey","EnableAutoTray","$value","REG_DWORD")
"Wrote enableautotray=$value" ?
endif
$ProfilesKey="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
$value=readvalue("$ProfilesKey","ProfilesDirectory")
if @error=0
$rcode=writevalue("$ProfilesKey","ProfilesDirectory","$value","REG_EXPAND_SZ")
"Wrote profilesdirectory=$value" ?
endif
Tokenize the file using KiX32.exe version 4.60, and confirm that it works, then run it under version 4.61. (Note: this script will not make any changes to your system. The script uses readvalue and writevalue commands, as well as the @kix macro, for illustrative purposes, as these were the lines which were certain to cause problems in the scripts I was testing.)
I've tried this on five different computers, running Windows XP, Windows XPx64 and Windows 7x64, and the problem occurs under all OSes.
I've already begun distributing version 4.61 to clients and am now afraid I'm going to be breaking stuff I've had in place for a couple years. Yikes.
Is there anything I can do, apart from un-distributing the new version?
|
Top
|
|
|
|
#198176 - 2010-03-24 06:50 PM
Re: Tokenization Compatibility Problem
[Re: Glenn Barnas]
|
groon
Just in Town
Registered: 2010-03-10
Posts: 4
Loc: Canada
|
Thanks for the quick reply. If Ruud says nothing's changed, does that mean he's not going to be looking at the issue? Is there a bug report forum where we could formalize this question?
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 561 anonymous users online.
|
|
|