Adding a Exe to Textpad using Registry

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Mladen

Adding a Exe to Textpad using Registry

Post by Mladen »

Hello,

I am trying to add executables like javac.exe or jikes.exe to Textpad using the Registry. First I did it using Textpad, then I saw the inserts in the Registry made by Textpad.
Now, when I make them, it will not work. I make same Inserts except the REG_BINARY::Properties, because I do not what to write there.

Thats my Code:

if( doNeedJikes ){
if( -1 != usrtoDo.Find("Jikes",0)){
m_console.AddString("Jikes wird verknüpft");
if(makeKey(HKEY_CURRENT_USER,buffer)){
if(createStringValue( HKEY_CURRENT_USER,
buffer,
"Command",
JDKistPfad+JikesBin,
REG_SZ)){
m_console.AddString(buffer+"\Command erstellt");
}
else{
m_console.AddString(buffer+"\Command NICHT erzeugt");
}
if(createStringValue(HKEY_CURRENT_USER,
buffer,
"Folder",
"$FileDir",
REG_SZ)){
m_console.AddString(buffer+"\Folder erstellt");
}
else{
m_console.AddString(buffer+"\Folder NICHT erzeugt");
}
...................AND SO ON..........

In my Registry I get the same Insterts like Textpad do, also with an continouos Tool#. However, the only thing I do not have, is the REG_BINARY Data for the Properities.

Have someone an Idee ???

Thx from Berlin.
Mladen

Re: Adding a Exe to Textpad using Registry

Post by Mladen »

Now I am sure its because of the Properities and the BINARY data. However, do someone knows how it have to be generated ?
If I do not do that, Textpad do it after 2 starts, but it still do not works properly. I copied it, then it worked.

How should this data look like ???

Thx
Post Reply