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
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
ok... I meant to say
In my Windows Registry I have these keys:
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
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
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.
poide have commanline option -xml for settings.
Quote/xml Stores all personal settings in the specified XML-file. [5.00]
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.
@TimoVJL
Quotepoide 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!
Maybe this could be helpful
https://wiki.pellesc.de/doku.php/portable (https://wiki.pellesc.de/doku.php/portable)