1. Matt Balent
  2. PowerBuilder
  3. Thursday, 5 August 2021 21:34 PM UTC

In the PB project file you can designate, amongst other things, a Product version and a File version.  How to I get this information from within PB?  I want to get the info from the exe I built for display on a 'Help - About' type window.

I've tried using OLE to the shell.application, but the GetDetailsOf method doesn't seem to have all of it (# 298 shows product version for the executable).  What about the Product version and file version for the section "Executable version used by installer"?

Thanks

Kevin Ridley Accepted Answer Pending Moderation
  1. Friday, 6 August 2021 01:56 AM UTC
  2. PowerBuilder
  3. # 1

I think this might be what you're looking for, unless it was the PB version that Miguel posted.

 

https://www.rgagnon.com/pbdetails/pb-0120.html

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 5 August 2021 23:18 PM UTC
  2. PowerBuilder
  3. # 2

Have a look at n_osversion by Roland Smith: https://www.topwizprogramming.com/freecode_osversion.html

For example, I'm getting the fileinfo like this:

n_osversion ln_osver
ls_pbvmname = ln_osver.of_PBVMName()
If ln_osver.of_GetFileVersionInfo(ls_pbvmname) Then
	ls_FixedFileVersion = trim(ln_osver.fixedFileVersion)
	if Integer(left(ls_FixedFileVersion, 2)) >= 17 then
		// Appeon 2017 or higher, we use this in u_dw for example.
		ib_Appeon = TRUE
	end if
end if

Hope it helps.

regards

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.