February 12, 201016 yr I don't know if I did something wrong but some RunOnceEx won't work for me in this case.In $OEM$ folder I have 6 files which are: autologon.reg, cmdlines.txt, hkcu.reg, hklm.reg, RunOnceEx.cmd and useraccounts.cmdThrough autologon.reg and useraccounts.cmd I create new default user account for my installation and it's working good so far. Actually I wanted to remove some annoyances in my installation (like Windows tour popup, and desktop cleanup wizard selected by default etc.) but I can't achieve that.Here're contents of my files:cmdlines.txt:[COMMANDS] "useraccounts.cmd""RunOnceEx.cmd"RunOnceEx.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D “Making changes to the default setup” /fREG ADD %KEY%50 /VE /D “Importing HKLM Registry Tweaks” /fREG ADD %KEY%50 /V 1 /D “REGEDIT /S hklm.reg” /fREG ADD %KEY%60 /VE /D “Importing HKCU Registry Tweaks” /fREG ADD %KEY%60 /V 1 /D “REGEDIT /S hkcu.reg” /fEXIThkcu.reg:Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]“NoRun”=dword:00000001[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu][-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]“ForceClassicControlPanel”=dword:00000001hklm.reg:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]“ForceClassicControlPanel”=dword:00000001[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]“RunCount”=dword:00000000[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]And I also attached my WINNT.SIF file (just in txt mode)WINNT.txt Edited February 13, 201016 yr by skidajmo
February 16, 201016 yr RunOnceEx.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D “Making changes to the default setup” /fREG ADD %KEY%50 /VE /D “Importing HKLM Registry Tweaks” /fREG ADD %KEY%50 /V 1 /D “REGEDIT /S hklm.reg” /fREG ADD %KEY%60 /VE /D “Importing HKCU Registry Tweaks” /fREG ADD %KEY%60 /V 1 /D “REGEDIT /S hkcu.reg” /fEXITIt should look like this:REG ADD %KEY%\50 /VE /D “Importing HKLM Registry Tweaks” /fREG ADD %KEY%\50 /V 1 /D “REGEDIT /S hklm.reg” /fSo you forgot the \ after %KEY%! Edited February 16, 201016 yr by HØLLØW
February 21, 201016 yr Author RunOnceEx.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D “Making changes to the default setup” /fREG ADD %KEY%50 /VE /D “Importing HKLM Registry Tweaks” /fREG ADD %KEY%50 /V 1 /D “REGEDIT /S hklm.reg” /fREG ADD %KEY%60 /VE /D “Importing HKCU Registry Tweaks” /fREG ADD %KEY%60 /V 1 /D “REGEDIT /S hkcu.reg” /fEXITIt should look like this:REG ADD %KEY%\50 /VE /D “Importing HKLM Registry Tweaks” /fREG ADD %KEY%\50 /V 1 /D “REGEDIT /S hklm.reg” /fSo you forgot the \ after %KEY%!Well I already tried that before (to add backslashes) but it was of no use. I tried to modify files on several ways but it wasn't working unfortunately. Thanks on trying to help anyways.
February 23, 201016 yr maybe a full path to those reg files?You need the backslash and the full path to the file.Yes, I think that's it!I just forgot that in my post, thank you guys.Skidajmo, can you try that and give us feedback? Edited February 23, 201016 yr by HØLLØW
Create an account or sign in to comment