Computing.Net > Forums > Programming > sigcheck help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sigcheck help

Reply to Message Icon

Name: KoolFrank87
Date: February 13, 2008 at 09:56:37 Pacific
OS: XP
CPU/Ram: 2 gig
Product: 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



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 13, 2008 at 18:11:30 Pacific
Reply:

for /f %%a in ('sigcheck -q -n "C:\myprogram.exe"') do set ver=%%a
if not "%ver%"=="1.1.1.1" installer.exe


0

Response Number 2
Name: KoolFrank87
Date: February 14, 2008 at 05:42:58 Pacific
Reply:

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


0

Response Number 3
Name: KoolFrank87
Date: February 14, 2008 at 05:46:21 Pacific
Reply:

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


0

Response Number 4
Name: KoolFrank87
Date: February 14, 2008 at 08:57:09 Pacific
Reply:

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?


0

Response Number 5
Name: Razor2.3
Date: February 15, 2008 at 05:54:40 Pacific
Reply:

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.


0

Related Posts

See More



Response Number 6
Name: Razor2.3
Date: February 15, 2008 at 06:33:15 Pacific
Reply:

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!


0

Response Number 7
Name: KoolFrank87
Date: February 19, 2008 at 12:19:36 Pacific
Reply:

I just tried that in the script im using and it has no effect. Is there anything else i can try?

Thanks
Frank


0

Response Number 8
Name: Razor2.3
Date: February 19, 2008 at 18:09:58 Pacific
Reply:

Without seeing what the script is doing? No.


0

Response Number 9
Name: KoolFrank87
Date: February 21, 2008 at 04:45:56 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: sigcheck help

Javascript help www.computing.net/answers/programming/javascript-help/7520.html

Batch File Formmatting Help, Please www.computing.net/answers/programming/batch-file-formmatting-help-please/14040.html

Help With Visual Studio Express www.computing.net/answers/programming/help-with-visual-studio-express/14611.html