World: r3wp
[SDK]
older newer | first last |
Henrik 1-Dec-2006 [877] | yes, the app and updates come from me and so I'll know which version it is if I just have a checksum on the executable. |
Maxim 1-Dec-2006 [878x2] | if you have full control on the app sources... using a resource editor (on windows), you could probably edit the rebol version data included in the binary metadata and then there are probably os calls to get that natively. |
this has the added benefit of being precise within the icons and shortcuts... and may remove the reference to REBOL within which is a bit annoying when you release stuff and its not labeled as per your output names ' :-/ | |
Henrik 1-Dec-2006 [880] | except it has to be fully automatic... |
Maxim 1-Dec-2006 [881] | on encap you mean? |
Henrik 1-Dec-2006 [882] | yes, no human involvement between initiating build and finished executable and knowing the version |
Maxim 1-Dec-2006 [883x2] | well you know the version from the source, and as you say, can resolve a checksum from the output bin. but you must keep a table of all the builds somewhere... I wonder if there are any commandline resource hackers? |
which would allow you to stamp the version (maybe) within the bin automagically. | |
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? | |
older newer | first last |