Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Write in the Registry (http://forums.winamp.com/showthread.php?t=262613)

Boyito 28th December 2006 17:47

Write in the Registry
 
This is a .reg file
I need to write in the registry in my installer

-------------------------------------------------
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableChangePassword"=dword:00000000
"DisableTaskMgr"=dword:00000000
"DisableLockWorkstation"=dword:00000000
-------------------------------------------------

I try to use this lines of code and doesnt work

WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableChangePassword" "DWORD Value" 0x00000000
WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr" "DWORD Value" 0x00000000
WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableLockWorkstation" "DWORD Value" 0x00000000


Whats wrong?

TIA

Red Wine 28th December 2006 18:05

code:
WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System" "DisableChangePassword" 0x00000000
WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System" "DisableTaskMgr" 0x00000000
WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System" "DisableLockWorkstation" 0x00000000


Boyito 28th December 2006 18:19

As always the answer has been correct and fast
Thanks RW until my next post :-D


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.