Writing the current date to the registry as binary data

116 views
Skip to first unread message

Andrew Truckle

unread,
Oct 8, 2021, 5:37:37 PM10/8/21
to innosetup
I know that the [Registry] section supports writing binary data to registry keys.

This is what I am trying to do:

1. Get the installer to add the install date ass binary data to a registry key (if it doesn't already exist).

2. Then, in my C#.Net app I want to use the Registry.LocalMachine.GerValue(...) routine to obtain that binary data and put it into a DateTime object.

I am just trying to avoid writing a simple string that is easy to edit directly in the registry.

Maybe this is not possible?

Jernej Simončič

unread,
Oct 8, 2021, 5:47:00 PM10/8/21
to Andrew Truckle on [innosetup]

On Friday, October 8, 2021, 23:37:37, Andrew Truckle wrote:


Maybe this is not possible?
It's possible, but you'll have to use some [Code] and the RegWriteBinaryValue function.


-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


The bigger they are, the harder it is to see your shoes.
       -- Dolly Parton's Principle
Reply all
Reply to author
Forward
0 new messages