WriteRegDWORD Doesn't Work???
I am totally lost... I am trying to add a user account into the SpecialAccounts user list in the registry to prevent the user account from showing up at the login screen. I've even went as far to create a script that does nothing but that (see below) to try to troubleshoot but nothing. As far as I can tell, my code is correct, but it doesn't work. It doesn't add the SpecialAccounts key, the UserList key or the DWORD to the registry. Can someone please help me figure out what I'm doing wrong??
PS: I've tried using 0x00000000, 0 and "0" but none of them has worked.
PPS: Information on the the SpecialAccounts registry key.
NSIS Script:
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "!Tech Installer"
!define PRODUCT_VERSION "1.1"
!define PRODUCT_PUBLISHER "Swall's Business Consultants"
!define PRODUCT_WEB_SITE "http://www.swallsbc.com"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "D:\Temp\TechSetup.exe"
RequestExecutionLevel admin
InstallDir "C:\"
Icon "D:\Temp\SwallsIconDownArrow.ico"
Section "MainSection" SEC01
WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" "ITSupport" 0x00000000
SectionEnd
Section -Post
SetAutoClose true
SectionEnd