SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Command Line interface for editinig version info

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder
View previous topic :: View next topic  
Author Message
deepakzworld



Joined: 05 Jun 2009
Posts: 2

PostPosted: Mon Jun 08, 2009 6:29 pm    Post subject: Command Line interface for editinig version info Reply with quote

Hi,
I am planning to buy Resource Builder for my company since we need to edit resouces in DLLs and EXEs from time to time since as are packaged as part of other products.
For this particular case, I am looking at editing the file version of an EXE that is packaged into another product. And the way I want to do it is using a silent command line interface for resource builder and calling it within the installer for the main product.

Please let me know if this is doable. I can edit the desired information from the GUi easily but this is not what the build script should be doing.

Any help is greatly appreciated.

Thanks
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Tue Jun 09, 2009 2:48 am    Post subject: Reply with quote

Hi,

You can create an RC file in your build script with necessary version information. On the next step you can compile it using either Resource Builder main exe or SIRCC32.EXE and then link compiled RES file to EXE using SIRCC32.EXE or main executable of Resource Builder.
Back to top
View user's profile Send private message
deepakzworld



Joined: 05 Jun 2009
Posts: 2

PostPosted: Wed Jun 10, 2009 12:22 am    Post subject: Reply with quote

Thanks for the reply Igor.
I tried what you suggested. Although it works, the problem is I want to update only the Version Information inside the exe.

Following the approach you suggested updates all the resources in the exe, like the Icons, etc. with whats inside the .res file.
Is there a way we can update just a particular resource inside an executable? I see '-update' as one of the options for the utility but not sure how I can use it in this particular case.

Another approach that might also work for my case is:
1. I can extract a .rc file from the current exe.
2. Compile this .rc file into a .res file.
3. Update just the VerisonInfo inside this .res file.
4. Replace the resources of the exe with the .res file.
I would like to know if there's a way to implement Step3 using Resource Builder command-line tool.

To be very specific, I want to update File Version, Product Version, Company Name and Legal Copyright inside the Version Info.


Thanks
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Wed Jun 10, 2009 12:57 am    Post subject: Reply with quote

I think you can try the following way:
1. Create a template RC file with your version info. RC file is just a text file in a specific format.
2. In your build script create the actual RC file with proper version info information.
3. Using SIRCC32.EXE utility (console utility that is delivered with Resource Builder) with -c switch compile this RC file into RES.
4. Using SIRCC32.EXE utility with -ls switch link this RES file to your EXE.

This way you will only update the specific resource in EXE and left others untouched.

Hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group