r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[SDK]

Gregg
1-Dec-2006
[885x4]
You need to use the API to get the version resource from a PE file. 
It might be a standard resource , but I haven't touched that in a 
long time so I can't remember.


As an aside, this feature was so requested in the VB world, years 
ago, that Desaware created a commercial product called VersionStamper 
that did just that; and they sold a lot of them.
The UpdateResource API, and others, were added to later versions 
of Windows, but I've never used them. Might not be too hard, but 
I can't say.
GetFileVersionInfo info isn't a real simple API call either. Have 
to figure a few things out in order to call it from REBOL.
Ideally, you would be able to specify version info in the encap header 
and then query it from system/options later.
Maxim
1-Dec-2006
[889]
but this is to get version info outside of the executable.
Gregg
1-Dec-2006
[890]
Ah, I missed that part. Just need to map GetFileVersionInfo then 
I guess.
Henrik
1-Dec-2006
[891]
hmm. GetFileVersionInfo would be written how? I need to control that 
through encapsulation.
Gabriele
1-Dec-2006
[892]
Henrik, if you need to do automatic update, you might want to look 
at how the detective does it, it has worked *very* well so far, and 
it can update both the exe (if you change version of the interpreter) 
and the code only (to save download time). the autoupdate library 
is bsd.
Henrik
1-Dec-2006
[893]
gabriele, sounds lovely. where would I find the library?
Graham
1-Dec-2006
[894x2]
As I understand it, the detective usually just downloads compressed, 
encrypted, signed source code and runs it.
http://detective.surfnet.nl/en/index_en.html
Gregg
1-Dec-2006
[896]
GetFileVersionInfo is in %version.dll. First you call GetFileVersionInfoSize, 
then GetFileVersionInfo (using the size you got in the GetFileVersionInfoSize 
call. Then you ca VerQueryValue for each item you want.
Graham
1-Dec-2006
[897]
Doesn't look like Maarten has released the source code on https://www.uitwisselplatform.nl/projects/detective/
Henrik
1-Dec-2006
[898]
nope, looks pretty empty.
Graham
1-Dec-2006
[899]
I might have the old sources on my drive .. let me check.
Henrik
1-Dec-2006
[900]
hmm... is enface1248031.exe really the latest enface?
Graham
1-Dec-2006
[901]
Do you want the sources from 2004 ?
Henrik
1-Dec-2006
[902]
graham, I'm really only interested in the software update parts. 
if the 2004 sources contain that, then ok
Gregg
1-Dec-2006
[903]
I'm looking at the version stuff real quick Henrik.
Graham
1-Dec-2006
[904]
there's an autoupdate.r in the zip
Henrik
1-Dec-2006
[905x2]
graham, ok, I'll have a look at that
gregg: ok :-)
Graham
1-Dec-2006
[907]
sent.
Henrik
1-Dec-2006
[908]
received. thanks.
Graham
1-Dec-2006
[909]
henrik, there's a separate download for the latest sdk .. which should 
be later than 1248031
Henrik
1-Dec-2006
[910]
I don't see it in that directory...
Graham
1-Dec-2006
[911x3]
No, it's not there.
But as I recall, you don't have the sdk anyway.
http://www.rebol.net/builds/sdk/
Henrik
1-Dec-2006
[914x2]
well, things changed a bit since last time. why do you think I post 
so much in this group all of a sudden? :-)
thanks for the link
Gabriele
2-Dec-2006
[916]
Henrik: usual place: http://www.colellachiara.com/soft/libs/autoupdate.r
Henrik
2-Dec-2006
[917x2]
gabriele, thanks. reading now.
am I right that autoupdate.r requires rebol/command?
Gabriele
2-Dec-2006
[919]
hmm, doesn't /pro have RSA too?
Henrik
2-Dec-2006
[920]
sorry, yes it does.
Graham
4-Dec-2006
[921]
Anyone know what the price of the sdk is if you already have the 
sdk on another platform?
sqlab
4-Dec-2006
[922]
I guess you can get the multi-copy discounted price of $299 each. 
That's what Cindy wrote me once
Graham
4-Dec-2006
[923]
errr.. the online price is $249!
sqlab
4-Dec-2006
[924]
Sorry, that was for the Command/SDK with a normal price of  $448 
according their web site
Graham
4-Dec-2006
[925x2]
I don't think command/sdk offers much on the linux platform as there's 
no odbc
Is there a Mac OSX sdk out yet?
Henrik
4-Dec-2006
[927]
there probably are builds for it, otherwise we wouldn't have AltME 
for OSX
Graham
4-Dec-2006
[928x2]
Good point .. but doesn't look like you can purchase it yet.
So, based on the above, maybe I can get the linux sdk for $49 if 
I already have command/sdk on windows?
Graham
5-Dec-2006
[930x2]
Getting a price out of RT is like ....
What sdk does Solaris x86 use ?
Graham
8-Dec-2006
[932x3]
http://www.rebol.net/builds/sdk/sdk-260204.. is that the right sdk 
for Fedora ?
http://www.rebol.net/builds/sdk/sdk-2602042.tar.gz
Ahh.. the execute flag has to be manually set on all the programs 
after unpacking it.