Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-21-2007, 11:54 AM
dmurty dmurty is online now
Registered User
 
Join Date: 08-30-2007
Posts: 6
Question Sign binary only if compiled

I have a bunch of vb6 and vs.net steps that compile binaries. I then have steps to sign all of those binaries. The problem is that once I sign the binary the next project that depends on that binary sees that it is newer than the source so it compiles. This causes every project to compile if it depends on one of our compiled binaries. Is there a way that I can have visual build pro only sign the binaries if visual build pro detected that it has to compile a new binary?

Thanks,

Damien
Reply With Quote
  #2  
Old 12-21-2007, 11:58 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
One method is to add another Sign Code step before your current Sign Code step, set to Verify (command) which will fail if the binary is unsigned. Also set this "verify" step to Continue Building on failure.

Then conditionally build your (immediately following) actual Sign Code step to only build when the last step failed (use this script expression):
Code:
[%LASTSTEP_STATUS% = vbldStepStatFailed]
"is true"
Reply With Quote
  #3  
Old 01-08-2008, 01:26 PM
dmurty dmurty is online now
Registered User
 
Join Date: 08-30-2007
Posts: 6
Kevin,

Thanks for your reply. That seems to have done the trick, except for my vs.net projects. The binaries for my vs.net 2005 projects seems to loose their signatures after the build step even if there are not changes.

Please help,

Thanks
Reply With Quote
  #4  
Old 01-08-2008, 01:47 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
VS 2005 copies the compiled executable from the obj\config folder to the bin\config folder after building, so you will need to sign both instances to prevent it from copying (and replacing a signed version in bin\config with an unsigned version in obj\config) when building.
Reply With Quote
  #5  
Old 01-08-2008, 02:31 PM
dmurty dmurty is online now
Registered User
 
Join Date: 08-30-2007
Posts: 6
Will give that a shot.

Thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:45 AM.


Copyright © 1999-2023 Kinook Software, Inc.