Salesforce

How Do I Add Additional .ini Settings? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Add Additional .ini Settings? (Magic xpa 3.x)

By default, when Magic xpa starts, it will use the file called “Magic.ini” located in the same directory as the .edp file. If that does not exist, it will use the “Magic.ini” file located in the Magic xpa installation directory.

However, you can override specific entries in the .ini file, or add entries, when you start up the Studio. This is useful when you want to use, say, a specific color file or use different files for testing.

Here is now to do it.

Overriding .ini settings

First, create a file that has the settings you want to override. It is important that you use the forward slash in front of each item. For instance, in our example, we have:

/[MAGIC_ENV]InputPassword=N

/[MAGIC_ENV]User = Supervisor

/[MAGIC_ENV]Password =

/[MAGIC_ENV]StartApplication=1

/[MAGIC_ENV]ColorDefinitionFile=usrclr2.eng

/[MAGIC_LOGICAL_NAMES]TEMP=C:\temp\

/[MAGIC_LOGICAL_NAMES]Testing=Y


We have overridden several of the default settings, such as the user ID and password. This saves time while we are programming.

Each item has the section of the INI in brackets, preceded by a forward slash.

Using the overrides

Next, we need to instruct Magic xpa to use the override settings. We do this using the following syntax:

<Magic xpa .exe file> @<Override File Name>

Which in our example is:

"C:\Program Files\MSE\Magic xpa x.x\MgxpaStudio.exe"

@C:\Projects\Testing.ini

Now, the values in Testing.ini will override the values in the default Magic.ini.

Reference
Attachment 
Attachment