NO

Author Topic: Program Settings in the INI file ?  (Read 4063 times)

eutic04

  • Guest
Program Settings in the INI file ?
« on: November 25, 2005, 05:54:42 pm »
Hello, MR. Pelle

why you do not store the program settings (Dir Include,Dir Lib, Dir PlugIn,Text Colors, etc)
in INI file (Es. in the Setting.ini in \BIN Dir ) to the place that in the Windows registry

in such way to render the portable program to store it in the pendrive

Excuse me for my poor English, sorry!

Ciao !
Eutic04

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2181
    • http://www.smorgasbordet.com
Program Settings in the INI file ?
« Reply #1 on: November 26, 2005, 05:59:30 pm »
Maybe - I think the Registry is much more convenient to work with than INI files.

No exactly sure what you want to do, but another approach might be Export/Import Settings - like in other IDE's?

Pelle
/Pelle

eutic04

  • Guest
Program Settings in the INI file ?
« Reply #2 on: November 26, 2005, 10:25:47 pm »
ok... I meant to say

In my Windows Registry I have these keys:

Code: [Select]

Windows Registry Editor Version 5.00
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Directories]
"ProjectDir"="D:\\PellesC\\Projects\\My Work"
"LibraryDirs"="D:\\PellesC\\Lib;D:\\PellesC\\Lib\\Win"
"IncludeDirs"="D:\\PellesC\\Include;D:\\PellesC\\Include\\Win;D:\\PellesC\\Include\\Win\\gl"
"PathDirs"="D:\\PellesC\\Bin"
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Colors]
"Text_FG"=dword:00800000
"Text_BG"=dword:00f5f5f5
"Seltext_FG"=dword:00ffffff
...
[HKEY_CURRENT_USER\Software\Pelle Orinius\PellesC\Application]
"AppWindow"="-4 -4 1028 742 1"
"ProjPaneWidth"=dword:000000c8
"ProjPaneLeft"=dword:00000001
...


poide.exe loads from the Registry these informations before run ( is true ?)

I would want that the informations are not loaded from the registry but from the file es. Setting.ini

Why if i install Pelles IDE in pendrive i can to use it in any Windows

I hope to have been clear...

Ciao !
Eutic04

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2181
    • http://www.smorgasbordet.com
Program Settings in the INI file ?
« Reply #3 on: November 28, 2005, 10:23:02 pm »
OK, I understand. As I said before: *maybe*. This will affect several places in the code, and INI files are not very "nice" to work with...

Pelle
/Pelle

Offline Dudemeister

  • Member
  • *
  • Posts: 2
Re: Program Settings in the INI file ?
« Reply #4 on: December 10, 2021, 07:13:43 am »
I'm roughly 16 years late to this party. I have no problem with the application's settings being stored in the Windows registry.
But I have not yet found a way to back up, export, or import those settings from within the IDE. Does such a feature currently exist and I just haven't found it? Or, if it the does not exist, can it be implemented. I supposed I could write a little program to backup/restore Pelles C's app settings in the registry. But of course, such a program would run outside of Pelles IDE.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1974
Re: Program Settings in the INI file ?
« Reply #5 on: December 10, 2021, 09:23:47 am »
poide have commanline option -xml for settings.
Quote
/xml Stores all personal settings in the specified XML-file. [5.00]
May the source be with you

Grincheux

  • Guest
Re: Program Settings in the INI file ?
« Reply #6 on: December 10, 2021, 05:09:42 pm »
When we create a portable application it search for the registry keyx used and put them into a file.
When launching the new app the registry is updated and when exiting the application the registry is cleaned.

Offline Dudemeister

  • Member
  • *
  • Posts: 2
Re: Program Settings in the INI file ?
« Reply #7 on: December 11, 2021, 04:31:27 am »
@TimoVJL

Quote
poide have commanline option -xml for settings.

I couldn't figure this out. So, I just manually backed up the registry entries. That works well enough for me, I suppose.

Thank you for your kind assistance!

Offline rapte

  • Member
  • *
  • Posts: 7
Re: Program Settings in the INI file ?
« Reply #8 on: December 16, 2021, 04:53:26 am »