1. I found no way doing it with .reg files (version 4)
2. Using REG.EXE from the Win98 resource pack leads to a strange padding of the value
REG ADD HLKM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001\001=%%windir%%\firstlog.bat REG_EXPAND_SZ leads to 001 and "%windir%\firstlog.batat" in the registryExporting this value leads to a binary string in the .reg file
3. Using regedit, I do not seem to be able to use REG_EXPAND_SZ, only binary values
4. Lastly, HLKM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001\001 also leads to a Key named HKLM under HKEY_LOCAL_MACHINE
I accepted 1, but problem 2 keeps bugging me. How can I correctly use REG.EXE?
Edited by xpman, 06 August 2010 - 09:06 AM.