Community Forums
Results 1 to 2 of 2

Thread: How to use Date Property in InstallScript

  1. #1
    Join Date
    Aug 2015
    Posts
    59

    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.

  2. #2
    Join Date
    Oct 2009
    Posts
    142
    agshah,
    I don't know about the Date property, but this can be used in InstallScript:

    Code:
        GetSystemInfo( DATE, nResult, strDate );
        GetSystemInfo( TIME, nResult, strTime );
        svDateTime = strDate + " " + strTime;
    reference:
    http://helpnet.installshield.com/ins...SystemInfo.htm

    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •