Adding a Exe to Textpad using Registry
Posted: Wed Feb 05, 2003 12:19 pm
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.
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.