Source language: Translate to:

RegistryWrite - Switch Type?

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

RegistryWrite - Switch Type?

Postby fkapnist » Tue Dec 02, 2014 1:23 pm

I want to write to the registry with RegistryWrite

Here is the code that works with my .reg file

Code: Select all
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION]
"MyProgram.exe"=dword:0


The registry entry looks like this
Image

But this is as close as I could get with Neobook's RegistryWrite
Code: Select all
RegistryWrite "HKEY_CURRENT_USER" "SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION\MyProgram.exe" "0x00000000 (0)"


The registry entry looks like this
Image

How do I switch the "Type" value from REG_SZ to RG_DWORD?

Does anybody know? Thanks in advance.

:roll:
User avatar
fkapnist
 
Posts: 348
Joined: Mon Nov 17, 2014 4:24 pm
Location: Greece

Re: RegistryWrite - Switch Type?

Postby dec » Tue Dec 02, 2014 2:26 pm

Hello,

A possible way is to use the npRegWriteValue action from my npConf plugin. Take a look at this forum message.
.
Enhance your NeoBook applications!
.
58 plugins, 1131 actions and 233 samples
.
NeoPlugins website: www.neoplugins.com
.
User avatar
dec
 
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain


Return to Misc. Questions and Information

Who is online

Users browsing this forum: No registered users and 1 guest