#109599 - 2003-12-04 07:16 PM
KixCrypt
|
ShaneEP
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
|
|
|
|
#109601 - 2003-12-04 08:56 PM
Re: KixCrypt
|
ShaneEP
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
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
Your new avatar is very distracting by the way...
|
|
Top
|
|
|
|
#109604 - 2003-12-04 09:24 PM
Re: KixCrypt
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
|
|
Top
|
|
|
|
#109610 - 2003-12-04 10:22 PM
Re: KixCrypt
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
Get this...
|
|
Top
|
|
|
|
#109616 - 2003-12-05 10:24 AM
Re: KixCrypt
|
Richard H.
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
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 580 anonymous users online.
|
|
|