PDA

View Full Version : Registry entry



NewsArchive
10-03-2008, 02:39 AM
I want to add a reg key + value from my installer for the <client> to a
ClarioNET enabled app. More specifically I want to set the http timeout
value on the client pc to avoid constant time-outs.

That's no problem as such but it got me thinking: what will happen if the
entry is already there? Do you get an error or does it overwrite or what? Or
should I first try to retrieve the value, if any?

Advice/recommendations appreciated.

TIA
Peter

NewsArchive
10-03-2008, 02:39 AM
Peter,

> I want to add a reg key + value from my installer for the <client> to a
> ClarioNET enabled app. More specifically I want to set the http timeout
> value on the client pc to avoid constant time-outs.
>
> That's no problem as such but it got me thinking: what will happen if the
> entry is already there? Do you get an error or does it overwrite or what?
> Or should I first try to retrieve the value, if any?
>
> Advice/recommendations appreciated.

If the value is already there, then the old value will be backed up (if you
have uninstall enabled) and the value will be overwritten.

You can use "Get Registry Key Value..." to check if the value (and what
value data) is already there and then do whatever you want (e.g. do not
overwrite it, ask the user what to do - overwrite/not overwrite, etc.)

Does this help?

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

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-03-2008, 03:02 AM
It sure did, thank you!
Peter