PDA

View Full Version : Can this be done?



NewsArchive
04-10-2006, 08:16 AM
Using Setup Builder Professional latest version. I am trying to do the
following but just can not seem to find the right magic combination.

When my application is compiled, it creates an INI file that contains
some various information like build number and also which file driver
(TPS or IPD) was used. I would like to have the installation script to
be able to read the driver type value from that INI during the
creation of the installation program. If the driver type is not
correct for a particular installation script, I would like it to show
a message and abort the creation of the installation program.

Any suggestions or tips that would point me in the correct direction
would be greatly appreciated!

Barton Whisler


Barton Whisler
Dir. Programming
Prosoft Inc.

NewsArchive
04-10-2006, 08:16 AM
Barton,

You can use #def to define a symbol and read the value (e.g. driver type)
from an INI file. Then use the symbol in a #ifdef compiler directive.

Something like:

#def DRIVERTYPE = (INI File)
#ifdef DRIVERTYPE Not Equals "IPD" Then
#msg [Driver type not correct yadda]
#halt
#end

Does this help?

If you need help, just let me know and I'll send you a demo script.

Friedrich

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

"point. click. ship" - that's SetupBuilder 5

NewsArchive
04-11-2006, 05:40 AM
Thanks, worked like a charm!

Barton