Specify INI File For Module Of Project


Mike Moore
 

Can we associate a specific INI file with a module of a project, or does a given instance of the Studio support one INI file for all applications?

Thank you.


Harry Kleinsmit
 

Hi Mike,

You could overrule the default setting in the Magic.ini, and add your own ini settings, by adding your own ini to the existing Magic.ini.

Startup sample: D:\MagicXPA\MgxpaStudio.exe /@Extra.ini (You can name it whatever you want, like /@<Project>.ini).

Note: If you are using directories in this ini you should enter them with a double backslash, except for the [MAGIC_ENV]StartApplication
Sample of an additional ini: 

[MAGIC_ENV]EmbedFonts = N
[MAGIC_ENV]CompressPDF = Y
;
[MAGIC_DBMS]MicrosoftSQLServer = 21, NotAllowNull, 10.3, MicrosoftSQL Parameters, N, , NotLogSync, 0, 0, NotCheckExist,
;
[MAGIC_DATABASES]MSSQL = DBMS, 21, %MSSQLDB%, , %MSSQLSRV%, , , , NoMagicRecordLock, ChangeFileInToolkit, CheckDefinition, NoCheckKey, NoFileLocks, , , CheckExist, 0, , NoAS400SrvrSort,
;
[MAGIC_LOGICAL_NAMES]Home = D:\\Magic\\MagicXPA\\

Best regards,
Harry Kleinsmit.


On Sat, Jan 28, 2023 at 02:34 PM, Mike Moore wrote:
Can we associate a specific INI file with a module of a project, or does a given instance of the Studio support one INI file for all applications?

Thank you.


Steven Blank
 

You can also swap in an entirely different INI file from the command line using the switch /INI=MAGIC2.INI

Steven G. Blank
Ξ SGBlank Consulting


On 1/28/2023 6:00 PM, Harry Kleinsmit wrote:

Hi Mike,

You could overrule the default setting in the Magic.ini, and add your own ini settings, by adding your own ini to the existing Magic.ini.

Startup sample: D:\MagicXPA\MgxpaStudio.exe /@Extra.ini (You can name it whatever you want, like /@<Project>.ini).

Note: If you are using directories in this ini you should enter them with a double backslash, except for the [MAGIC_ENV]StartApplication
Sample of an additional ini: 

[MAGIC_ENV]EmbedFonts = N
[MAGIC_ENV]CompressPDF = Y
;
[MAGIC_DBMS]MicrosoftSQLServer = 21, NotAllowNull, 10.3, MicrosoftSQL Parameters, N, , NotLogSync, 0, 0, NotCheckExist,
;
[MAGIC_DATABASES]MSSQL = DBMS, 21, %MSSQLDB%, , %MSSQLSRV%, , , , NoMagicRecordLock, ChangeFileInToolkit, CheckDefinition, NoCheckKey, NoFileLocks, , , CheckExist, 0, , NoAS400SrvrSort,
;
[MAGIC_LOGICAL_NAMES]Home = D:\\Magic\\MagicXPA\\

Best regards,
Harry Kleinsmit.

On Sat, Jan 28, 2023 at 02:34 PM, Mike Moore wrote:
Can we associate a specific INI file with a module of a project, or does a given instance of the Studio support one INI file for all applications?

Thank you.



Mike Moore
 

Harry and Steve, thanks for your prompt responses.

I should explained that I was inquiring about associating specific INI settings with project modules, as described under "How Do I Easily Switch from One Project to Another?" in  Mastering Magic xpa.




I believe that specifying an override INI file or swapping INI file applies to the instance of Studio when launched.

While running Studio can different INI's apply between given project modules available within the instance of running Studio?


Thank you.






From:        "Steven Blank" <sgblank@...>
To:        main@magicu-l.groups.io
Date:        01/29/2023 09:05 AM
Subject:        Re: [magicu-l] Specify INI File For Module Of Project
Sent by:        main@magicu-l.groups.io




You can also swap in an entirely different INI file from the command line using the switch /INI=MAGIC2.INI

Steven G. Blank
Ξ SGBlank Consulting


On 1/28/2023 6:00 PM, Harry Kleinsmit wrote:
Hi Mike,

You could overrule the default setting in the Magic.ini, and add your own ini settings, by adding your own ini to the existing Magic.ini.

Startup sample: D:\MagicXPA\MgxpaStudio.exe /@Extra.ini (You can name it whatever you want, like /@<Project>.ini).

Note: If you are using directories in this ini you should enter them with a double backslash, except for the [MAGIC_ENV]StartApplication
Sample of an additional ini: 

[MAGIC_ENV]EmbedFonts = N
[MAGIC_ENV]CompressPDF = Y
;
[MAGIC_DBMS]MicrosoftSQLServer = 21, NotAllowNull, 10.3, MicrosoftSQL Parameters, N, , NotLogSync, 0, 0, NotCheckExist,
;
[MAGIC_DATABASES]MSSQL = DBMS, 21, %MSSQLDB%, , %MSSQLSRV%, , , , NoMagicRecordLock, ChangeFileInToolkit, CheckDefinition, NoCheckKey, NoFileLocks, , , CheckExist, 0, , NoAS400SrvrSort,
;
[MAGIC_LOGICAL_NAMES]Home = D:\\Magic\\MagicXPA\\

Best regards,
Harry Kleinsmit.

On Sat, Jan 28, 2023 at 02:34 PM, Mike Moore wrote:

Can we associate a specific INI file with a module of a project, or does a given instance of the Studio support one INI file for all applications?

Thank you.