#71015 - 2002-10-22 02:32 PM
Re: UpdateKiXForms() - comments
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
doc, saw your reply on the udf. at least, this part: code:
$FormFileVer=GETFILEVERSION("%windir%\system32\kixforms.dll", "Fileversion") Shell '%compspec% "%windir%\system32\regsvr32.exe %windir%\system32\kixforms.dll /u" >nul 2>nul' IF Not Exist("C:\KIXFORMS\$FormFileVer") MD ("C:\KIXFORMS\$FormFileVer") EndIf COPY "%windir%\system32\kixforms.dll" "C:\KIXFORMS\$FormFileVer\"
should be: code:
$FormFileVer=GETFILEVERSION($destination+"\kixforms.dll", "Fileversion") Shell '%compspec% /c "$destination'+'\regsvr32.exe $destination'+'\kixforms.dll /u" >nul 2>nul' IF Not Exist("C:\KIXFORMS\$FormFileVer") MD ("C:\KIXFORMS\$FormFileVer") EndIf COPY $destination+"\kixforms.dll" "C:\KIXFORMS\$FormFileVer\"
eh... something similar. also, instead of shelling to dos, you could use:
code:
shell $destination+'\regsvr32.exe $destination'+'\kixforms.dll /u /s'
also, assuming that kixforms is currently at system folder... nah, do this: code:
$id=readvalue("HKEY_CLASSES_ROOT\Kixtart.Static\CLSID","") $location=readvalue("HKEY_CLASSES_ROOT\CLSID\"+$id+"\InprocServer32","") $currentversion=""+getfileversion($location,"FileVersion")
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#71016 - 2002-10-22 07:13 PM
Re: UpdateKiXForms() - comments
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Lonkero,
I'll look at making some newer code... as for the last suggestion about CLSID - that's a no go as it would only work for those of you that "install" kix on the computer.
I don't install KiX or modify the registry on any systems.
Thanks for the /s switch. I forgot to look for switches. Hey - it was late
|
|
Top
|
|
|
|
#71025 - 2002-10-24 03:48 AM
Re: UpdateKiXForms() - comments
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
eh?
exit is not same as quit. I have always got the expression that if used in function, it returns as error the exit's result? not quitting the whole script, only the function.
on the behalf of <>, you already use NOT there. it's binary operand which does turn its right side to other.
meaning: NOT 1 - results zero (actually false) NOT 1 <> 0 - results false NOT (1 <> 0) - results false
so, it is not issue of golfing, just logic. or do you say: "when I drank that milk. ,if"
if it works, ok. but it's not "correct" syntax anyway. again, it's matter of opinion.
also, having string in there without quotes? ok, if it works but wonder why it does as it definitely should not. [ 24. October 2002, 03:52: Message edited by: Lonkero ]
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#71031 - 2002-10-24 06:55 AM
Re: UpdateKiXForms() - comments
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11628
Loc: CA
|
Okay... I tried to please both of you.
Yes, Lonkero is correct, not needed, but I took ideas and suggestions from both of you.
I implemented stuff from both of you in this new updated version.
http://www.kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=12&t=000285#000000 [ 24. October 2002, 06:56: Message edited by: NTDOC ]
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 601 anonymous users online.
|
|
|