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