Archive: Registry


Registry
hi

I made it write one registry value to file "WriteRegStr"

For example

Windows registry Original >>
[HKEY_LOCAL_MACHINE\SYSTEM\WPA\PnP]
"seed"=dword:705fc855

I EDIT

[HKEY_LOCAL_MACHINE\SYSTEM\WPA\PnP]
"seed"=dword:808dc855

WITH NSIS


Name "registry"
OutFile "registry.exe"

!include "MUI.nsh"
!include "Sections.nsh"
!include "Registry.nsh"

!define SHCNE_ASSOCCHANGED 0x08000000
!define SHCNF_IDLIST 0

Function .onInit
yes:
SetSilent silent
Goto done
no:
SetSilent normal
done:
FunctionEnd

Section "registry" registry

WriteRegStr HKLM "SYSTEM\WPA\PnP" "seed" "808dc855"

SectionEnd

not working WITH NSIS

Can someone just give me a short example

THANKSGIVING

It's a DWORD and you should therefore use WriteRegDWORD and not WriteRegStr.