Salesforce

How Do I Make the Runtime Engine Automatically Load a Cabinet File? (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Make the Runtime Engine Automatically Load a Cabinet File? (Magic xpa 3.x)

You can make the runtime engine automatically load a cabinet file by specifying the cabinet file to run in the Options menu. If you specify the cabinet file there, then any time Magic xpa is run on that computer, that specific project will run by default.

Note that there are two defaults specified. One is the “Default Project”, which opens automatically in the Magic xpa Studio (the .edp file). The other is the “Start Application”, which opens when the runtime engine is invoked (the .ecf file).

Setting the Start Application in the Magic.Ini

  1. Open your project.

  2. Go to Options->Settings->Environment->System->Start Application.

  3. Press zoom (F5, or Edit->Zoom) to get a dialog to select the .ecf file you want. Alternatively, you can just type in the file path.

Now, when you start Magic xpa in Runtime mode, this cabinet file will open.

Note: The Start Application is saved in the Magic.ini file, which is by default stored where Magic xpa is installed. For some applications, this is all you need, if there is only one default application per computer. However, if you have an installation where different projects are started at different times, you will want to start the project directly, as shown in Creating a shortcut to the project file.

Specifying the cabinet file in the Shortcut

Alternatively, you can specify the cabinet file in the Target field of the Windows shortcut.

  1. In the Target field, enter the path and file name of the Magic xpa runtime engine, enclosed in double quotes.

  2. Follow that with a space and a forward slash.

  3. Enter the path and filename of the cabinet file.

Reference
Attachment 
Attachment