PDA

View Full Version : Get / Put registry values



NewsArchive
08-21-2009, 03:27 AM
Hello all,

I'll need to accomplish following with SB:

1. Check if a registry key exists
2. If yes, read the contents
3. Append a string to existing key value
4. Write back to registry

Can this be done with Setup Builder ?

Thanks

Timo Lahtinen
Helsinki Finland

NewsArchive
08-21-2009, 03:28 AM
> I'll need to accomplish following with SB:
>
> 1. Check if a registry key exists
> 2. If yes, read the contents
> 3. Append a string to existing key value
> 4. Write back to registry
>
> Can this be done with Setup Builder ?

Hi Timo,

Sure - piece of cake with SetupBuilder.

Just look in the script editor side of things.

Use the Get Registry function to read your key into a script variable that
you have set.

Then you can use the IF statement to test if it has a value.

If so then you can use the Edit Registry function to update the entry and
in the data section just insert the variable that you have (which now holds
the existing data) and add whatever else you need to add.

Does that help?

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
for Windows 7 and Vista!"
www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
www.setupcast.com - "A revolutionary new publishing system for software
developers - enhanced for SetupBuilder users!"
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
08-28-2009, 01:52 AM
Thank you Charles.


Timo Lahtinen
Helsinki Finland