December 24, 200817 yr please post your runonce.cmd again in its current state, the nlite line should be of no consequence. what happens when you double the .cmd? do the items end up in the registry as they should?
December 24, 200817 yr Author This is my cmdlines.txt[Commands]"rundll32 advpack.dll,LaunchINFSection nLite.inf,U""./RunOnceEx.cmd"and this is my RunOnceEx.cmdSetLocal enableextensionsFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.TXT SET CDROM=%%i:SET REGKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %REGKEY% /V TITLE /D "Windows Setup" /fREG ADD %REGKEY%\001 /VE /D "Updating" /fREG ADD %REGKEY%\001 /V 1 /D "%CDROM%\UPDATES\kb892130wgav.exe /Q" /fREG ADD %REGKEY%\001 /V 2 /D "%CDROM%\UPDATES\kb905474wgan.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 3 /D "%CDROM%\UPDATES\kb940157search.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 4 /D "%CDROM%\UPDATES\KB957938silverlight.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 5 /D "%CDROM%\UPDATES\kb890830maltool.exe /passive /norestart" /fREG ADD %REGKEY%\001 /V 6 /D "%CDROM%\UPDATES\kb956391killbitsactivex.exe /passive /norestart" /fEndLocalEXITI am beginning to wonder if it is my directory structure as well... is this the proper layout?CD Root---->$OEM$---->$$, cmdlines.txt, RunOnceEx.cmdAlso one quick question from reading, what is the difference between GUIRunOnce and RunOnceEx?
December 25, 200817 yr cmmcnamara, the cmdlines.txt goes in the $OEM$ folder. The things in the $$ folder are placed in the C:\Windows folder. See here for a description of the $OEM$ folder. Enjoy, John.
December 25, 200817 yr Author Sorry I wasn't very good at showing that tree. The folder $$ is in the $OEM$ folder and the cmdlines.txt and RunOnceEx.cmd is in the $OEM$ folder as well but not inside $$.
December 28, 200817 yr Author Ok thanks for all the help guys, I just cleared it up. I just changed all the REGKEY to KEY and it works. Also the CD method suggested didn't work, I went back to my original method and it ran smoothly.
Create an account or sign in to comment