Setup.ini

InstallShield 2012 Spring

Project: This information applies to InstallScript projects.

Setup.ini is an initialization file that is created during the build process of InstallScript-based projects to control certain elements of the installation. The build process fills in only certain key names and values in Setup.ini. After the build process creates Setup.ini, it is placed in the Disk1 folder in <project folder>\Media\<media name>\Disk Images.

If you want to customize Setup.ini further, modify it with a text editor. You can automate this process by using the Postbuild Options panel of the Release Wizard or the Execute Batch File property in the Releases view to launch a batch file or executable file that performs the desired modifications. Do not simply overwrite Setup.ini with a modified copy from a previous media build; doing so could cause your installation to work improperly.

Setup.ini contains two predefined sections:

[Startup]
[Mif]

You can add additional sections to Setup.ini to pass information to your setup script. You can then call the GetProfString and GetProfInt functions to transfer the information from the Setup.ini file to your installation.

Here is an example Setup.ini file:

[Startup]

EnableLangDlg=Y

Product=My Application

ProductGUID=23EAFFCA-361D-11D3-8B0F-00105A9846E9

CompanyName=My Company Name

Skin=Setup.skin

SmallProgress=N

SplashTime=5

CheckMD5=N

CmdLine=/f1Test1.iss

LauncherName=MyInstall.exe

 

[Mif]

Type=SMS

Filename=Ishield

SerialNo=IS50-32XYZ-12345

Locale=DEU

Note: If you need to access the file later (after Disk1 has been removed), you should copy Setup.ini to the support folder (SUPPORTDIR) at the beginning of the installation.