Groups > dBase > dBase deployment > Re: Ability to insert date into .INI entry




Ability to insert date into .INI entry

Ability to insert date into .INI entry
Tue, 01 Jan 2008 15:25:55 -050
Is there a way to place a calculated date() (or similar) function into the
deployment line in the create INI entry area?  I'd like to track date of last
install/download.

Post Reply
Re: Ability to insert date into .INI entry
Tue, 01 Jan 2008 15:27:29 -050
PS:  I am referring to the string line of inno (ISTool).

JM

john marshall Wrote:

> 
> Is there a way to place a calculated date() (or similar) function into the
deployment line in the create INI entry area?  I'd like to track date of last
install/download.
> 
> JM
Post Reply
Re: Ability to insert date into .INI entry
Tue, 01 Jan 2008 22:21:49 -080
John --

Inno allows you to write to the .INI file, the question would be about 
the date you need. I would suggest that it's probably possible, but I am 
not sure how ... (not a lot of help, I realize, but ...).

To write to the .INI file:

[INI]
; Attempt to write/modify the INI file for the appropriate part of the app:
;
Filename: "\ImportData.ini"; Section: "ObjectPath";
Key: 
"objPath0"; String: "\Main"

The "Section" is the standard INI section -- [SectionName], the
"Key" is 
the actual entry you want to create, and it must be a string (in the 
above, I am inserting the path to the "Main" folder for the
application 
for the DEO settings). So, the hard part is determining how to get Inno 
to do the date math you need, and to stream it out as a string ...

Ken

john marshall wrote:
> PS:  I am referring to the string line of inno (ISTool).
> 
> JM
> 
> john marshall Wrote:
> 
>> Is there a way to place a calculated date() (or similar) function into
the deployment line in the create INI entry area?  I'd like to track date of
last install/download.
>>
>> JM
> 


-- 
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
Post Reply
Re: Ability to insert date into .INI entry
Wed, 2 Jan 2008 01:12:37 -0500
In article <6HpO7SLTIHA.340@news-server>, john.marshall@NOSPAM.com 
says...
> 
> PS:  I am referring to the string line of inno (ISTool).
> 
> JM
> 
> john marshall Wrote:
> 
> > 
> > Is there a way to place a calculated date() (or similar) function into
the deployment line in the create INI entry area?  I'd like to track date of
last install/download.
> > 
> > JM


John,

Can you describe your question more fully? I don't quite follow what it 
is that you are wanting to achieve. How are your users downloading this 
software?

-- 
Geoff Wass [dBVIPS]
Montréal, Québec, Canada

.|.|.|        dBASE info at http://geocities.com/geoff_wass       |.|.|.
.|.|.| ---------------------------------------------------------- |.|.|.
Post Reply
Re: Ability to insert date into .INI entry
Wed, 02 Jan 2008 05:32:01 -080
john marshall wrote:
> I'm using a form of Ken's multiple inno install choices and have all the
static INI entries working fine.  What I'd like to do is insert the
"date" of last install, but I have been unable to find an INNO
constant that can pick up the date().  I guess I could switch to the revision
number supported by INNO, but I've had trouble remembering to increment this
when I drop updated modules into the image folders.  Perhaps either of you could
share some insight into managing revisions.  I am also thinking of the MS way of
checking compiled file date and building a "list" for comparison, but
have not yet determined if Inno maintains dates on install machine that match
the image file dates.

You may want to take a look at using the registry ...?

Ken

-- 
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
Post Reply
<< Previous 1 2 Next >>
( Page 1 of 2 )
about | contact