Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
111 user(s) are online (107 user(s) are browsing Forums)

Members: 0
Guests: 111

more...

Support us!

Headlines

 
  Register To Post  

Installer get date
Just popping in
Just popping in


See User information
Using the Installer program, I can get the version of my program to be installed using this:


(set Program0 "WorkbenchExplorer")
...
(set vernum1 (getversion Program0)) (set Ver1 (/ vernum1 65536)) (set Rev1 (- vernum1 (* Ver1 65536)))
(set Version1 (cat Ver1 "." Rev1))

Is there a way to get the date string?

Go to top
Re: Installer get date
Just can't stay away
Just can't stay away


See User information
Not simply, you can use the 'earlier' command to check if the installed file is older than yours but it's too unreliable as filedates can be changed by the user, a bad battery, just by the user changing the files location.

You could use something like:

(run setenv filedate `list <filename> lformat "%D"`)

then use installers getenv function.

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: Installer get date
Just can't stay away
Just can't stay away


See User information
@Severin

I think he means the date from the version string.

So something like:
(run setenv version_full `version full <filename>`)

with some kind of code to parse the date part out.

Go to top
Re: Installer get date
Just popping in
Just popping in


See User information
(run "setenv filedate `list "Program0" lformat "%D"`")
(set Released (getenv "filedate"))

That worked! Thanks.

It does give dates like: Yesterday, Monday, not just the usual 23-Nov-14. But good enough.

Workbench Explorer - A better way to browse drawers
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project