cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
agshah
Level 7

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
Level 7

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/helplibrary/LangrefGetSystemInfo.htm

HTH
0 Kudos