PDA

View Full Version : Read INI or Registry



NewsArchive
10-13-2007, 01:18 AM
Hi Friedrich,

Is it possible to read values from INI file or Registry key in the SB
IDE? I.e. not by the install (I know I can do that<g>) but from
within the script itself?

What I would like to be able to do is to set certain information in an
INI file or registry keys on my machine and then pull them from there
when I build the install. Such as version number and other build
specific information. Is there a way to do this?

I know I can pass values on the command line, but being able to put
data into an INI or registry entry to read in by the script would be
very cool.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
10-14-2007, 01:54 PM
Hi Arnór,

Interesting idea. I'll add it to the next build.

Thank you for your suggestion.

Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
10-14-2007, 01:54 PM
Hi Friedrich,

>Interesting idea. I'll add it to the next build.
>
>Thank you for your suggestion.

See Jane's reply. That's exactly what I was looking for. It would be
nice to be able to get it from a registry key too:)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
10-14-2007, 01:55 PM
Arnór,

Do you mean so as to be visible within the IDE, or to affect the installer
that you're compiling?

If the latter... unless I'm missing something that you're trying to do,
can't you use the #const compiler directive and have it read a value from an
INI file? I've been using that for certain version information for a couple
of years.

Jane

NewsArchive
10-14-2007, 01:55 PM
Hi Jane,

>If the latter... unless I'm missing something that you're trying to do,
>can't you use the #const compiler directive and have it read a value from


YES! I knew it was in there but couldn't find it so I though I was
confusing this with something I'd done! That's what I was looking
for. Now it would be nice if Friedrich could take this to the
registry as well as in some cases it is easier to deal with the
registry than ini files.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
10-17-2007, 01:41 AM
Yes but it sure would be nice to be able to specify your own section and item
name. The way it is now is a bit limited.

Peter Gysegem
Beaver Creek Software

NewsArchive
11-02-2007, 01:23 AM
Hi Arnór,

"#get registry" and "#get ini" added! Thank you for your suggestion.

This will be in the next build (scheduled to be released on Friday).

Friedrich

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

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

-- Official Comodo Code Signing and SSL Certificate Partner