#89477 - 2002-11-20 07:33 AM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
I can agree with the "overshooting" on the file size thing..
The version found would be cool though..
Kent
|
Top
|
|
|
|
#89478 - 2002-11-20 09:27 AM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
Here is a sig generator that I threw together on this..
Not quite all there, but functional..
code:
; -- Sigen.kix ; -- by Kent Dyer ; -- version .1 ; -- For generating a list of files for BBChecker ; -- Thanks Lonkero! ; -- to do - get the KIXFORMS.DLL Component going BREAK ON CLS $programfilesdir = readvalue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","ProgramFilesPath") SHELL "%comspec% /c echo %programfiles% > bbtmp.txt"
IF Open(3, @scriptdir + "\bbtmp.txt") = 0 $x = trim(ReadLine(3)) close(3) ENDIF $location = "$x\BBchecker"
IF exist(@scriptdir + "\bbtmp.txt") DEL @scriptdir + "\bbtmp.txt" ENDIF
IF exist(@scriptdir+"\bbdep.sig") DEL @scriptdir+"\bbdep.sig" ENDIF
;$kixforms = READVALUE("HKEY_CLASSES_ROOT\CLSID\"+readvalue("HKEY_CLASSES_ROOT\Kixtart.Form\CLSID","")+"\InprocServer32","")
;if "kixforms.dll"=$files ; $location=$kixforms ; else ; $location=$bbcheckerdir+$files ; endif
IF Open( 3 , @scriptdir+"\bbdep.sig", 5 ) = 0 $filename = Dir($location+"\*.*") WHILE TRIM($filename) <> "" AND @error = 0 IF LEN($filename) > 2 ? $filename $filsize = getfilesize($location+"\"+$filename) ?$filsize
$x = WriteLine( 3 , "[$filename]" + @crlf) $x = WriteLine( 3 , "size="+chr(34)+$filsize+chr(34) + @crlf) IF INSTR($filename,"exe") OR INSTR($filename,"dll") $filversion = getfileversion($location+"\"+$filename) $x = WriteLine( 3 , "version="+ chr(34) + $filversion + chr(34) + @crlf) ENDIF $x = WriteLine( 3 , @crlf) ENDIF $x = "" $filename = Dir() ; retrieve next file SLEEP 1 LOOP ELSE BEEP ? "failed to open file, error code : [" + @error + "]" Close(3) ENDIF
Have fun!
Kent
|
Top
|
|
|
|
#89480 - 2002-11-20 10:42 AM
Re: BBChecker II 1.5.2
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
so, here is my siggen, little shorter and simpler maybe code:
$folder=@scriptdir+"\BBChecker\" del $folder+"*.sig" $file=dir($folder) do if len($file)>2 $files=$files+$file+chr(10) endif $file=dir() until @error $files=split(left($files,len($files)-1),chr(10))
for each $file in $files $=writeprofilestring($folder+"bbdep.sig",$file,"Size",getfilesize($folder+$file)) $=writeprofilestring($folder+"bbdep.sig",$file,"Version",getfileversion($folder+$file)) next
{edit} it's actually sad that you coded that much... [ 20. November 2002, 10:44: Message edited by: Lonkero ]
_________________________
!download KiXnet
|
Top
|
|
|
|
#89481 - 2002-11-20 07:31 PM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
> I thought of having in my kixforms-code-center a code that scans for the bbcheckers to sent files which are totally different than the files in the program files.
Hmmm... Did I hear an echo in here? As I remember, I mentioned a similar thing to you when the BBDEP.KIX was first put together.
> it's actually sad that you coded that much
Well, you know that is what you get when you try to throw something like that together at 1:00 AM. As I mentioned, it was really rough code. You are probably asking why I used WRITELINE rather than WRITEPROFILESTRING? Call it silly or wierd.. I just dropped the ball.
Kent
|
Top
|
|
|
|
#89483 - 2002-11-20 07:35 PM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
I do have a sugestion for BBChecker..
How about adding the emoticons from the post in BBChecker?
Just a crazy thought...
Kent
|
Top
|
|
|
|
#89485 - 2002-11-20 08:10 PM
Re: BBChecker II 1.5.2
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
dear kent, I still have one uncoded block. the installer. currently, I take care of everything by me self and that is (as les has shown us) maybe not the best way. and, for using on other boards (dunno if want to do that freeware ), it should be controllable by the control panel. having the uninstaller in there is not hard, but how to keep the reginfo in there too, like IE ca has... I quess even symantec writes every subfolder they install in the uninstaller information... dunno about the best practise here. also, currently, if you decide on the installer to not to install, it will still already copy the files, that has to be changed (no one actually has noticed that!)
showing the eula would be nice, but can't show it without kix and registered kixforms. maybe need to make a generic installer...
patrick, you said about stealing the focus with slider, saw that now. it seems to happen while working with IE window.
_________________________
!download KiXnet
|
Top
|
|
|
|
#89490 - 2002-11-21 05:51 AM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
For the installer process you could write a log like the InstallShield SETUP.ISS log that is generated. I know that MCA uses this type of process for a "marker" for the KixnnnUpdate.exe packages.
Thanks,
Kent
|
Top
|
|
|
|
#89492 - 2002-11-23 08:08 AM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
Downloaded your new code and get after a while of running it: quote:
Script error: array reference out of bounds! if $c[3][0]+$c[3][2]+$c[3][3]>$PMnewist[3][0]+$PMnewist[3][2]+$PMnewist[3][3] and instr($c[3][1],@month)
Thanks,
Kent
|
Top
|
|
|
|
#89494 - 2002-11-23 06:55 PM
Re: BBChecker II 1.5.2
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Jooel,
I think I need to practice what I preach.
BBDEP comes through again.
Kent
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 515 anonymous users online.
|
|
|