Every time my code make a registry entry in the IE Explorer TypedURLs Key i get the message box that say you have successfully bla bla bla.

These are the type of strings that comes from Regedit.exe to let the users know if everything went well or not when importing or exporting strings to or from the Windows Registry.

In my app I need to by-pass this message and let the action simply take place with no message box popping up.

If there is a way to do this, I will still set an option for the user to deside if the he or she want to see the box notice or not in my inifile.

But first I got to learn how to stop it.

Any help would be appreciated.

I can't use the Internet whenever i please anymore (for a while) so just in case Thanks in Advance
Posted on 2003-06-03 23:48:28 by cmax
Why dont you modify the registry by calling RegOpenKey etc.. insted of using .reg scripts?
Posted on 2003-06-04 05:57:43 by Azrim
regedit.exe /s file.reg
Posted on 2003-06-04 07:12:00 by comrade
Thanks Guys,
I will be trying both ideas tonight until i get it.
For starters regedit.exe /s file.reg must be a sure way i bet.

I'm now wondering about NT type funtions that may work even for 9x.

I read somewhere a while back that said you can run registry entry in memory so if i can do this I will not have to execute the .reg file ... and just read it into memory and let Regedit.exe or Windows itself do it thing. Knowing who is doing the job would be great to know about also...

Do anyone know something about this or know a link where ot has been descussed before.


Thanks Again, I am more than happy with the ideas desplayed here... I have wondered about this long before i now have to use it.
Posted on 2003-06-04 18:38:39 by cmax
I tried the regedit.exe /s file.reg with an reg file like this but it don't work with a REGEDIT4 file. I have not tried yet but i think this line works for console boxes only, Im near sure.

I have a group REGEDIT4 scripts in a folders that i execute if i want those setting in the register and delete others if i don't want them in there anymore.

I would have no problem with console boxes if they don't show up on screen.

But they pops up the Black Dos box in the place of an message box.

Is there a way around that and\or is there a line that works on straight up Windows REGEDIT4 scripts.

REGEDIT4 scripts may be quite difference but i could be wrong.

This is one of the file I tried it with:



; ............................................................
REGEDIT4

regedit.exe /s file.reg


"url1"="http://board.win32asmcommunity.net"
"url2"="http://www.illinoislottery.com"
"url3"="http://home.microsoft.com/"
; ............................................................
Posted on 2003-06-04 21:41:45 by cmax