I need the code to edit a myfile.ini file at the conclusion
of a Wise install. I want to change a path statement in my
ini file. I would like to do this during the installation.
InstallBuilder, InstallMaster, and InstallManager Only
Scripting is not available in the InstallMaker version of the Wise Installation System.
Use the Edit INI File script action to edit your program's private INI files as well as the WIN.INI and SYSTEM.INI files. You should not use this action to add device drivers to the 386Enh section of the SYSTEM.INI file; use the Add to SYSTEM.INI action to make these changes. Editing SYSTEM.INI that way causes Windows to be restarted after installation. Editing with Edit INI File does not force Windows to restart, and might corrupt the file.
•File. Enter the pathname to the file to be edited. The drop-down list provides quick access to file names based on script variables (for example, %MAINDIR%\NONAME.INI), which can easily be edited to refer to the file you need to modify.
•INI File Contents. Enter the modifications to be made to the INI file in this field. Each line in the Contents field is interpreted separately, as follows:
•Lines with text enclosed in square brackets (such as [Section]) tell the installation to put the lines that follow in the indicated section of the INI file.
•If you include a section name with no entries after it, that section and all its entries are deleted.
•Lines that start with a parameter name followed by an equals sign ("=" and a value indicate lines that should be added to the INI file. (For example, ProgPath=%PROGDIR%.) If the INI file already contains an entry for the specified parameter, the existing entry is replaced.
•If you include a parameter name with no value (for example, Progpath=), that entry is deleted if it exists.
•Comments, lines starting with “;”, are not allowed.
EXAMPLE
To read about a script that demonstrates this action, see Installing from a CD-ROM or Network.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.