Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

sigcheck help

Original Message
Name: KoolFrank87
Date: February 13, 2008 at 09:56:37 Pacific
Subject: sigcheck help
OS: XP
CPU/Ram: 2 gig
Model/Manufacturer: Dell
Comment:
I have been messing with the program for the past day and need some guidence. I want the script to verify if it has the latest of the given file and if not, to install it.

So far this is what I have:

sigcheck.exe -n -q "C:\myprogram.exe" |find | find "1.1.1.1" > nul
if not errorlevel 1 echo version 1.1.1.1 Found!!!


Im not sure what to do at this point. I know its not right, any ideas?

Frank


Report Offensive Message For Removal


Response Number 1
Name: Razor2.3
Date: February 13, 2008 at 18:11:30 Pacific
Subject: sigcheck help
Reply: (edit)
for /f %%a in ('sigcheck -q -n "C:\myprogram.exe"') do set ver=%%a
if not "%ver%"=="1.1.1.1" installer.exe


Report Offensive Follow Up For Removal

Response Number 2
Name: KoolFrank87
Date: February 14, 2008 at 05:42:58 Pacific
Subject: sigcheck help
Reply: (edit)
I am attempting to check the version for adobe reader:

@echo off
Echo Checking for Adobe 5.0.5..

for /f %%a in ('sigcheck -q -n "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"') do set ver=%%a
if not "%ver%"=="5.0.5.2001102600" echo Program Installed!
pause

The output says:

Checking for Adobe 5.0.5..
Press any key to continue . . .

Im not sure what to do from here. Looks like the code should work but not sure why it dosnt. I am goin to try it a couple other files to see what the output is.

Thanks for the help Razor.

-Frank


Report Offensive Follow Up For Removal

Response Number 3
Name: KoolFrank87
Date: February 14, 2008 at 05:46:21 Pacific
Subject: sigcheck help
Reply: (edit)
I think i got it. I took not out of the if line,
if "%ver%"=="5.0.5.2001102600" echo Program Installed!

That seemed to work. If i change the version from 5.0.5.2001102600 to 5.0.5.20011026001111111 It dosnt find the program and I will have it start the install program.

-Frank


Report Offensive Follow Up For Removal

Response Number 4
Name: KoolFrank87
Date: February 14, 2008 at 08:57:09 Pacific
Subject: sigcheck help
Reply: (edit)
I have gotten it to work, just am having one issue.

if the version has commas in it:

1,1,0,1 or spaces 3 . 0

It dosnt work correctly. Any thoughts?


Report Offensive Follow Up For Removal

Response Number 5
Name: Razor2.3
Date: February 15, 2008 at 05:54:40 Pacific
Subject: sigcheck help
Reply: (edit)
Not off the top of my head; the quotes should prevent such behavior. I'd suggest you remove the @ECHO OFF so you can see exactly what the script is doing.

Report Offensive Follow Up For Removal


Response Number 6
Name: Razor2.3
Date: February 15, 2008 at 06:33:15 Pacific
Subject: sigcheck help
Reply: (edit)
Now that I think about it, we don't have to care.
for /f %%a in ('sigcheck -q -n "C:\Program Files\Adobe\Acrobat 5.0\Acrobat\Acrobat.exe"') do set ver=%%a
set ver=%ver: =.%
set ver=%ver:,=.%

if "%ver%"=="5.0.5.2001102600" echo Program Installed!


Report Offensive Follow Up For Removal

Response Number 7
Name: KoolFrank87
Date: February 19, 2008 at 12:19:36 Pacific
Subject: sigcheck help
Reply: (edit)
I just tried that in the script im using and it has no effect. Is there anything else i can try?

Thanks
Frank


Report Offensive Follow Up For Removal

Response Number 8
Name: Razor2.3
Date: February 19, 2008 at 18:09:58 Pacific
Subject: sigcheck help
Reply: (edit)
Without seeing what the script is doing? No.

Report Offensive Follow Up For Removal

Response Number 9
Name: KoolFrank87
Date: February 21, 2008 at 04:45:56 Pacific
Subject: sigcheck help
Reply: (edit)
Razor2.3

As you said, I took out the @echo off and ran the script. I found that the files with a space in the verson would not display anything past the space marker. So if the file was verson 2.0 RC2 it would omit the RC2. The rest started to work after that.


Thanks Again!

Frank


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: sigcheck help

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




XP Installed to G?

exessive internet traffic

ZoneAlarm Question. Blocked Connect

Windows Live Messenger Problem

Delete $Uninstall after SP3 updates


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC