RegistryWrite - Switch Type?

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

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

RegistryWrite - Switch Type?

Post by fkapnist »

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
dec
Posts: 1663
Joined: Wed Nov 16, 2005 12:48 am
Location: Spain
Contact:

Re: RegistryWrite - Switch Type?

Post by dec »

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
.
Locked