PDA

View Full Version : Setting System Time on Install



NewsArchive
12-02-2008, 04:19 AM
Hi

I want to be able to check the System Time format on install and set
the clock to 24-hour format if not already set.

Can I do this within SB6 ? I figure it will need a script variable,
but was unable to find it in the help.

Cheers
Kim

NewsArchive
12-02-2008, 04:19 AM
Kim,

> I want to be able to check the System Time format on install and set the
> clock to 24-hour format if not already set.
>
> Can I do this within SB6 ? I figure it will need a script variable, but
> was unable to find it in the help.

No problem. I'll post a demo script.

Friedrich

NewsArchive
12-02-2008, 04:21 AM
Kim,

> I want to be able to check the System Time format on install and set
> the clock to 24-hour format if not already set.
>
> Can I do this within SB6 ? I figure it will need a script variable,
> but was unable to find it in the help.

See attached "SetTimeFormat.sb6" demo project for SetupBuilder and source
code snipped screenshot.

This project lets you check the local time format and set it to 24-hours
format if it's in 12-hours format or to 12-hours format if it is in 24-hours
format.

It should also work fine on Vista (both 32- and 64-bit).

Does this help?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-03-2008, 03:00 AM
By the way, to set it to the 12-hours AM/PM format, you should set it to
"hh:mm:ss tt" (see attached screenshot).

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder "point. click. ship"
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
12-03-2008, 03:01 AM
Freidrich

Your bloods worth bottling! Exactly what I needed to solve the
problem.

Cheers and many thanks
Kim