Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Write registry key with OS date/time in special format YY-MMM-DD HH:MM:SS

110 views
Skip to first unread message

Alastair Cameron

unread,
May 4, 2001, 7:23:16 AM5/4/01
to
InstallShield for Windows Installer 2.03.

I need to write a new registry key value containing the current operating
system date and time, concatenated in to a single string in a special format
(i.e. DD-MM-YYYY HH:MM:SS).

I'm pretty new to InstallShield so was wondering if I could define this when
I define the registry key value, or whether it would have to be done
dynamically via a custom action (using InstallScript?).

Thanks.

Alastair


Robert M. Dickau (InstallShield)

unread,
May 4, 2001, 6:10:46 PM5/4/01
to
Windows Installer has Date and Time properties, but the format isn't the
same as yours; I expect you'd need a custom action for this. (In
InstallScript, you could prototype and call the GetLocalTime or
GetSystemTime API, use Sprintf to format the values, use MsiSetProperty to
create your own DATETIME property containing the string you created, and
then use the expression [DATETIME] in your registry value data...)

"Alastair Cameron" <alastair...@blueyonder.co.uk> wrote in message
news:3af2...@12.41.20.38...

0 new messages