agshah
Occasional contributor

How to use Date Property in InstallScript

Hi all,
I want to set a string value to the Date property in InstallScript.

string strDate;
strDate = Date;

But this errors out with 'Date not defined'. How to use this?

I am able to do
strDate = INSTALLDIR

so not sure why Date is not working.
Labels (1)
0 Kudos
1 Reply
ch_eng
Flexera beginner

Re: How to use Date Property in InstallScript

agshah,
I don't know about the Date property, but this can be used in InstallScript:

    GetSystemInfo( DATE, nResult, strDate );
GetSystemInfo( TIME, nResult, strTime );
svDateTime = strDate + " " + strTime;


reference:
http://helpnet.installshield.com/installshield22helplib/Subsystems/installshield22langref/helplibrar...

HTH
0 Kudos