How i get the version info from any resource file (dll or exe)

Hello:

How i get the version info from any resource file (dll or exe). The info is:
File Description, Product Version, Company Name, Internal Name, Original
Filename, Private Build, Special Build, Legal Copyright, Legal Trademarks,
Language, Comments and OS.

Thanks

Diego Alvarez



0
Diego
3/19/2000 11:15:35 PM
sybase.powerscript 7704 articles. 0 followers. Follow

2 Replies
826 Views

Similar Articles

[PageSpeed] 31
Get it on Google Play
Get it on Apple App Store

In article <u4Uo2mfk$GA.285@forums.sybase.com>, dlalvarez@altavista.net 
says...
> Hello:
> 
> How i get the version info from any resource file (dll or exe). The info is:
> File Description, Product Version, Company Name, Internal Name, Original
> Filename, Private Build, Special Build, Legal Copyright, Legal Trademarks,
> Language, Comments and OS.
> 
> Thanks
> 
> Diego Alvarez
> 
> 
> 
> 
There is a WIndows API that will allow you to do this, but I don't have 
the name of it handy...will look it up when I get to the office/
-- 

Andy Turiansky [TeamSybase]
Check out SDN @ http://www.sybase.com/sdn
http://www.teamsybase.com
http://www.delanet.com/~aturians/pbh
0
andyt
3/22/2000 11:12:45 AM
Diego,

Have a look at http://rkiesler.home.mindspring.com/win32api/shellsrv.htm --
specifically, the of_GetFileVersionInfo() function.

Note that the demo app is PFC-based, but you can de-couple the necessary
code (it's in a DLL).

--
pbm_hopethishelps,
Roy Kiesler [TeamSybase]
Sybase Developer Network (SDN) - http://www.sybase.com/sdn

"Diego Alvarez" <dlalvarez@altavista.net> wrote in message
news:u4Uo2mfk$GA.285@forums.sybase.com...
> Hello:
>
> How i get the version info from any resource file (dll or exe). The info
is:
> File Description, Product Version, Company Name, Internal Name, Original
> Filename, Private Build, Special Build, Legal Copyright, Legal Trademarks,
> Language, Comments and OS.
>
> Thanks
>
> Diego Alvarez
>
>
>


0
Roy
3/23/2000 1:41:18 AM
Reply:

Similar Artilces:

Help on how to get Product Version and File Version on exe file
Hi All, Is there a way of getting the Product and File version of my pb application during runtime? Is there a pb function I can use or do I have to use an API function to do this? Currently using PB 9.0.1 Build 7171 Regards and Thanks, Willie ...

Get File Version from EXE File
hi folks how can i get the file version from a exe file. i need that information for a setup download website. best regards Philipp Use System.Diagnostics.FileVersionInfo.GetVersionInfo(path) to get the version info of a file.Hope this helps!Paul yes, thanks a lot :)...

superreview requested: [Bug 283628] Firefox .exe file reports incorrect version info : [Attachment 175585] Bump internal file versions for browser and mail
Chase Phillips <cmp@mozilla.org> has asked Brian Ryner (IBM) <bryner@brianryner.com> for superreview: Bug 283628: Firefox .exe file reports incorrect version info https://bugzilla.mozilla.org/show_bug.cgi?id=283628 Attachment 175585: Bump internal file versions for browser and mail https://bugzilla.mozilla.org/attachment.cgi?id=175585&action=edit ------- Additional Comments from Chase Phillips <cmp@mozilla.org> Still need to find where 1.7.5 / 2004110711 is coming from. Not sure yet. ...

superreview granted: [Bug 283628] Firefox .exe file reports incorrect version info : [Attachment 175585] Bump internal file versions for browser and mail
Brian Ryner (IBM) <bryner@brianryner.com> has granted Chase Phillips <cmp@mozilla.org>'s request for superreview: Bug 283628: Firefox .exe file reports incorrect version info https://bugzilla.mozilla.org/show_bug.cgi?id=283628 Attachment 175585: Bump internal file versions for browser and mail https://bugzilla.mozilla.org/attachment.cgi?id=175585&action=edit ...

version info in the resource DLL. How to?
Hello, not quite sure whether this is the correct group, but I'll try it here first. As the title says, the problem is how to force version info resource into resource DLL created by translation tools (XE5 Enterprise). The options for the resource DLL project show empty panel, so one can hardly specify any version info here. I could create the RES file with required version info "by hand", but how to link this RES file to the resource DLL project so that the link survives the update resource DLLs and build all projects actions? (I tried to $R it into DLL .dpr sourc...

Dll does not get File info
Somehow my Dlls/Executables does not take the Version Info fields which I have filled in in the Delphi XE2 Update 4 Project > Options > Version info form : ============== Target : All (with same settings): Language ID $0409 [V] Include version information in project [ ] Auto generate build number ( I have read that this does not work, so why should I check it ) Keys: Value: companyName VMV .... .... Etcetera. ================ In my test source code the following line goes wrong: Size := GetFileVersionInfoSize(PChar (...

Exe and dll file version
Hi Folks, I'm using PB 8.0.3.9704 I have a question concerning the compiled dll and exe files of my powerbuilder project. Does anyone know of a way to set the compiled dll and exe files' version property? Possibly through a resource file? It seems that by default PB is setting a compiled exe and dll's version property to the 8.0.3.9704 string. Interestingly, the files' product version property is being set to what I specify on the project window's Version setting. My Inno created installation program is having trouble 'updating' installs of my pro...

How to get a file version of an exe
If I right click on a file and select properties, I get a window with a version tag that shows me the version of the file. How can I get that with code? I have been looking at the following window api call: BOOL GetFileVersionInfo(LPCSTR lptstrFilename, DWORD dwHandle, DWORD dwLen, LPVOID lpData ); Does anyone have some sample code that does this? I always get confused when trying to match arguments with windows api and I'm not sure how to use this if this is even the right way. Thanks > If I right click on a file and select properties, I get a > ...

How can I get info about the version of an EXE
Should I use: GetFileVersionInfo .ecc or is this an easier way ?? Thnaks That or you can look at: of_GetFileVersionInfo http://www.pfcguide.com/extensions/ext_0014.asp contains an userobject called n_cst_winsrv_shell32 that sports a function called of_GetFileVersionInfo() -- the code is courtesy of Simon Caldwell. Thanks <Dawn_Brown_Eyes_[TeamSybase]> ha scritto nel messaggio news:584D837AAA9D2586007BC43E85256BBA.005B3B5285256BBA@webforums... > That or you can look at: of_GetFileVersionInfo > > > http://www.pfcguide.com/extensions/ext_001...

RE: How do I get DLL file versions
This approach works >> use Win32::API; sub GetFileVersion { my $fn = shift @_; if (! $ref_GetFileVersionInfoSize) { $ref_GetFileVersionInfoSize = new Win32::API("Version", "GetFileVersionInfoSize", [P, P], I); if ( ! defined $ref_GetFileVersionInfoSize) { warn "Cannot import KERNEL fcn : GetFileVersionInfoSize : $!"; return undef; } } # OK, we've got a handle for GetFileVersionInfoSize; use it! my $z = 0; my $sz = $ref_GetFileVersionInfoSize->...

Putting Version Info into EXE file
Hi, I have create an application in PB 6.5 build 444 and I have a problem with placing my Version Info into EXE file. I have used The Watcom Resource Compiler (WRC) and a new EXE file with specified Version Info was created. But when I try to run this EXE, error "Fatal disk error, Retry" occured. Where was a mistake? Have You got any experience with putting Version Info into EXE file created by PB? ecrane computing has developped a tool to change the version. www.ecrane.com BTW, the PB exe is not really an exe, AFAIK, as it contaions supplementary info, which ...

Changing an EXE File Version info
Hi... How can I do this? I want to change the version info of an Exe file. > How can I do this? I want to change the version info of an Exe file. Look in Project Options - Version Info Thnx but I don't want to use IDE. I want to do it in runtime. Javid Shoaie wrote: > Thnx but I don't want to use IDE. I want to do it in runtime. This is what I have used in the past. It works pretty good. http://www.codeguru.com/tools/standalonetools/article.php/c1403/ On a VB6 project I used it on, I had to make sure the compiled version number string was large enough for t...

How to get Product Version from .exe file properties?
We have been using .ini files to record the current version, but I would like to start using the properties on the .exe file, that can be set in the Project painter when I build. PB Help says this: "Version Specify your own values for the Description, Copyright, Company Name, Product Name, and Product Version fields associated with the executable file and with machine-code DLLs. These values display on the Version tab page of the Properties sheet for the file in Windows Explorer. You cannot change the File Version and Internal Name fields, which are used to identify the...

Getting the exe Version Info PB 8
Now that we can version our .exe (PowerBuilder 8.0)...am I to understand that I must code an API call and then translate the return from ulong to hexidecimal to the desired languag format in order to get that version as a string? Please.....someone tell me it is not true!!!! ~~~~~~~~~~~~~~~~ J. Christopher McCauley PDMS General Physics Corporation (925) 363 9672 (Fax) (925) 363 9669 jc_mccauley@mindspring.com You can use a wrapper DLL to return the information to you. Roy (with Simon's help) wrote one for you already: http://www.pfcguide.com/extension...

Web resources about - How i get the version info from any resource file (dll or exe) - sybase.powerscript

Minister of Natural Resources (Canada) - Wikipedia, the free encyclopedia
The Minister of Natural Resources ( French : Ministre des Ressources naturelles ) is the Minister of the Crown in the Canadian Cabinet who is ...

Economy weathers resources hit: RBA
Economy not growing as fast as the central bank wants, but better than might have been, says Heath.

Contractor dies at Northern Star Resources’ Paulsens gold mine
... unwell, prompting work to be suspended at Paulsens Gold Mine in the Pilbara region. In a statement provided to the ASX, Northern Star Resources ...

Contractor dies at Northern Star Resources’ Paulsens gold mine - PerthNow Search Search
A 28-YEAR-OLD man has died at a West Australian gold mine after becoming unwell, prompting work to be suspended at Paulsens Gold Mine in the ...

Paris Attacks: Australian authorities urged to take stock and bolster resources
Australian police and intelligence agencies have been urged to take stock, bolster resources and undertake training exercises for mass terrorist ...

Networks Deploy Resources to Paris Attack Coverage
The terror attacks in Paris have forced the broadcast networks to make changes to their lineups, with both ABC News and NBC News airing live ...

Resources stocks under pressure as commodity rout deepens
Energy stocks, including Santos, were hit on the ASX after oil fell almost 4 per cent overnight. Resources companies came under pressure as the ...

Changepoint launches updated resource planning solution
... performance specialist Changepoint is launching a new version of its Daptiv PPM product that allows users to assess project and portfolio resources ...

A US Senate-approved space bill would allow companies to own resources mined from asteroids
... a big boost in the private industry. One of the most important aspects would be the establishment of property rights of any natural resource ...

Stephen Amell Weighs in on the Future of "Flash"/"Arrow"/"Legends" Crossovers - Comic Book Resources
Stephen Amell Weighs in on the Future of "Flash"/"Arrow"/"Legends" Crossovers - Amell suggested "we could be looking at a situation next year ...

Resources last updated: 12/6/2015 10:15:06 PM