skidajmo Posted February 12, 2010 Share Posted February 12, 2010 (edited) 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, 2010 by skidajmo Link to comment Share on other sites More sharing options...
HØLLØW Posted February 16, 2010 Share Posted February 16, 2010 (edited) 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, 2010 by HØLLØW Link to comment Share on other sites More sharing options...
skidajmo Posted February 21, 2010 Author Share Posted February 21, 2010 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. Link to comment Share on other sites More sharing options...
iamtheky Posted February 22, 2010 Share Posted February 22, 2010 maybe a full path to those reg files? Link to comment Share on other sites More sharing options...
krose Posted February 22, 2010 Share Posted February 22, 2010 You need the backslash and the full path to the file. Link to comment Share on other sites More sharing options...
HØLLØW Posted February 23, 2010 Share Posted February 23, 2010 (edited) 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, 2010 by HØLLØW Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now