PDA

View Full Version : Configuring Checkboxes with a silent install ini file


jinjoid
08-16-2006, 07:24 AM
I have a basic installation program that performs different actions depending on whether checkboxes are enabled or not. This currently works fine. However I wish to automate this with a silent install. I have other installations that use silent installs but they all use strings in session variables, I set these using

%variablename%=Whatever

in the ini file, again this works OK

Now I know that checkboxes are LUA variables and not session variables but is there a way to set them in an INI file e.g. %checkbox1%=False or whatever syntax. I've trawled the documentation but can't find any answers. Is this possible? If so how do you do it?

Any help appreciated :D

James

P.S. when I try the %checkbox1%=False (equivalent) I receive an error message "Invalid silent install INI file:Inifile.ini"

Adam
08-16-2006, 01:13 PM
You could use Lua variables in the INI file. Then when the install runs "On Pre Install" you could set the % type variables based on the LUA variables from the INI file.

Hope this makes sense

Adam.

jinjoid
08-17-2006, 03:35 AM
I have got around the problem by using regular session variables in the install that only get used in a silent install and that works great but it is a bit wasteful. Thanks for the help, I got a working install doing what I want which is the most important thing.

Cheers :lol

J

Adam
08-17-2006, 11:10 AM
Sounds good to me

Adam Kapilik