Writing registry entries

Blitz3D Forums/Blitz3D Userlibs/Writing registry entries

_PJ_(Posted 2009) [#1]
Does anyone know of a means to edit the registry, IU assume this would require the kernel32 or similar .dll

The only way I can do this at the moment is to edit the registry manually, export the key, then by lookig at the .reg file, I can generate a similar file in Blitz then Execfile

This is impractical for two reasons:

1) It requires the user to answer the "Do you wish to add xxx to the registry" prompt.
2) Execfile opens with the current MIME type for the file. It maybe possible that users may not have the regedt32 /Merge functionality as the default MIME action.


Yasha(Posted 2009) [#2]
Code archives to the rescue! No idea whether it works though.


_PJ_(Posted 2009) [#3]
Wow, thanks, Yasha.. I had only seen similar archives relating to reading entries :)

I'l give it a try!


_PJ_(Posted 2009) [#4]
There was a slight issue with the amendment made, plus I had to change a whole load of function name and so on to match my decls, but that's all minor stuff. It works perfectly for what I need!


_PJ_(Posted 2009) [#5]
hrmm some aspects don't seem to work correctly, but it is useful nonetheless.