Archive: How to call Template.ini in ExecWait


How to call Template.ini in ExecWait
My colleague and I are trying to package the installation of SQL server 2005, which 3 exe are going to be installed: SQL Server 2005 ENT version, SQL server 2005 SP2 and one other exe

As the whole thing has to be in slient installation, we have created a Template.ini for the SQL server 2005 ENT, however we dont know how to call that Template.ini for that installation...We know that we probably have to use ExecWait, but dont know what to write after that ExecWait...

We are newbies on packaging, so please kindly help us...


You can't execute .ini files.


Is there any ways that we can do this with NSIS? We need to define all the instants and stuff as the whole package has to be in slient mode...


Please ask particular questions like "How can I create directory with NSIS?". "How can I do this?" isn't good question.


ReadINIStr user_var(output) ini_filename section_name entry_name

Reads from entry_name in [section_name] of ini_filename and stores the value into user variable $x. The error flag will be set and $x will be assigned to an empty string if the entry is not found.

example:
ReadINIStr $0 $INSTDIR\winamp.ini winamp outname


WriteINIStr ini_filename section_name entry_name value

Writes entry_name=value into [section_name] of ini_filename. The error flag is set if the string could not be written to the ini file.

examples:
WriteINIStr $TEMP\something.ini section1 something 123
WriteINIStr $TEMP\something.ini section1 somethingelse 1234
WriteINIStr $TEMP\something.ini section2 nsis true


Are these the functions that you are looking for?


As mentioned you cannot execute an INI (initialisation) file. You probably need to run some other executable and give it the INI file path as a parameter.

Stu


Hi there!

This might help you:

http://www.devx.com/dbzone/Article/31648


start /wait setup LOGNAME=C:\setup\setup.cab /settings C:\setup\myTemplate.ini /qn


Cheers

Bruno