Page 1 of 2 12>
Topic Options
#109599 - 2003-12-04 07:16 PM KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Does the following kixcrypt setup look ok? I am still getting an "ERROR : failed to find/opn script!" error on some pcs. It works fine off and on. But for some reason they get the above message sometimes at login. Some PCs never get the error. I have been unable to reproduce the error here on my test PCs. Is there some kind of time out that deletes the temp file before it is actually ran or something?

I have tried creating a debug version...It appears to work fine. None of the debug info looks incorrect.


Top
#109600 - 2003-12-04 08:20 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no, it does not look.
looking at your run line, you have %-signs there.
running the line spawns the line and in the package they are hardcoded.

use escape there: ^%
to get the %-sign in there.
_________________________
!

download KiXnet

Top
#109601 - 2003-12-04 08:56 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
So something more like this? I never thought about that before...That means my logon server was hardcoded for all the lcoations before then right? That could cause some timeout situations probably.


Top
#109602 - 2003-12-04 08:57 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Your new avatar is very distracting by the way...


Top
#109603 - 2003-12-04 09:20 PM Re: KixCrypt
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Is that a guy or a girl, lonk?
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#109604 - 2003-12-04 09:24 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it's a dude.
more of him at:
http://www.revscene.net/forums/showthread.php?s=&threadid=167092
_________________________
!

download KiXnet

Top
#109605 - 2003-12-04 09:25 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, but you should also escape the kixcrypt-var.
_________________________
!

download KiXnet

Top
#109606 - 2003-12-04 09:31 PM Re: KixCrypt
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
that's nasty!
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#109607 - 2003-12-04 09:43 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Hey Lonk...

When I escape all the % signs...it doesnt work at all. The .exe starts but it never starts wkix32.exe.

Top
#109608 - 2003-12-04 09:54 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
run it with kixcrypt instead and see what it cries
_________________________
!

download KiXnet

Top
#109609 - 2003-12-04 10:13 PM Re: KixCrypt
Jose Offline
Seasoned Scripter
*****

Registered: 2001-04-04
Posts: 693
Loc: Buenos Aires - Argentina
Where is that blond basta? Looks like you have made the same mutation than Michael Jackson.

Edited by jose3 (2003-12-04 10:31 PM)
_________________________
Life is fine.

Top
#109610 - 2003-12-04 10:22 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Get this...


Top
#109611 - 2003-12-04 10:24 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
now show also the line that gave this result
_________________________
!

download KiXnet

Top
#109612 - 2003-12-04 10:30 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
The line that gave the result was...

\\server\share\msupdater_1003_2.exe

Did you want the screen shot of the kixcryt generator like above?

Top
#109613 - 2003-12-04 10:51 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no, just the line that creates the exe.
_________________________
!

download KiXnet

Top
#109614 - 2003-12-04 10:57 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
kixcrypt -d -e "^%logonserver^%\netlogon\wkix32.exe """^%KIXCRYPTFILE^%"""" "C:\MSUpdater_1003.kix"
Top
#109615 - 2003-12-05 05:49 AM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
ok, we might need richard kenoby here...
it might seem that his GUI-script does not create console (is that even possible?) because the escapes still show in the end.
also, what you have shown in the resulting debug screen is not even possible.

the escape shows in the result but totally different place from where you actually say you put it.
_________________________
!

download KiXnet

Top
#109616 - 2003-12-05 10:24 AM Re: KixCrypt
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Luke...use the docs Luke...

Taken directly from the documentation:
Quote:

<PRE>SPEECH MARKS and ENVIRONMENT VARIABLES on the command line
Ok, I make no apologies for this, it is the way that the DOS command line works.

Sometimes you will want to specify environment variables on the command line. These are expanded by the command line interpreter before they get to the program that you are running. This can have unexpected side effects.

For example, say your %TEMP% directory is set to “D:\EPHEMERAL”. If you use the command:
kixcrypt.exe –t %TEMP% myscript.kix
to create an encrypted file, the path will be expanded as if you had typed
kixcrypt.exe –t D:\EPHEMERAL myscript.kix
If the person who run the resulting file does not have a directory called D:\EPHEMERAL it will fail. The solution is to double up the “%” signs. This tells the command line interpreter to ignore them. The command becomes:
kixcrypt.exe –t %%TEMP%% myscript.kix
Now, %TEMP% is written to the file, and is only expanded when it is run on the client machine.</pre>




DOS/Windows command line handling is a steaming pile of excrement, and successive versions (including the latest) have simply conspired to make the situation worse.

Be careful when using the "^" escape character - it is not supported on all version of windows.

You don't have to escape the %KIXCRYPTFILE% variable. Because it is not set it is left as-is (of course if you have set it it will be expanded)

Get the literal "%" signs in the strings by doubling them up.

When you execute the debug version you will see the "Executing" line which should still have the environment variable visible, and the "Expanded" line which should have the run-time values of the environment variables.

See how you get on with:
Code:
kixcrypt -d -e "%%logonserver%%\netlogon\wkix32.exe """%KIXCRYPTFILE%"""" "C:\MSUpdater_1003.kix"


Top
#109617 - 2003-12-05 06:03 PM Re: KixCrypt
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Richard...

When I used your suggested command from above I get the following when run.


Top
#109618 - 2003-12-05 08:44 PM Re: KixCrypt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep, just like it should.
I haven't have any success with doubling the %-sign.

anyway, have tested around a bit and I suggest you shoot this:
Code:
kixcrypt -d -e ^%logonserver^%\netlogon\wkix32.exe ""^%KIXCRYPTFILE^%"" "C:\MSUpdater_1003.kix" 

_________________________
!

download KiXnet

Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 580 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.077 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org