beatbox99 Posted May 26, 2006 Share Posted May 26, 2006 The beginning of my runonceex.cmd file for a Windows 2000 Pro install looks like this:@Echo OffSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Application Installer" /fREG ADD %KEY%\004 /VE /D "Extracting D620 Software" /fREG ADD %KEY%\004 /V 1 /D "C:\masters\extract.exe /Y /E /L C:\masters\ C:\masters\D620.CAB\" /fREG ADD %KEY%\009 /VE /D "Dell Notebook System Software" /fREG ADD %KEY%\009 /V 1 /D "C:\masters\D620\System\setup.exe -S" /fWhen I run this, I get an error message back saying: "Too many command-line parameters." for each REG ADD entry...Is the format different under Windows 2000??? Link to comment Share on other sites More sharing options...
Yzöwl Posted May 26, 2006 Share Posted May 26, 2006 (edited) The second command only has an error because the previous one failed!If the cab file hasn't extracted, then the setup cannot be run from the extracted files.Try changing the first command to this single line"%COMSPEC% /C C:\MASTERS\EXTRACT /YEL C:\MASTERS C:\MASTERS\D620.CAB" /Fextract exe needs running from the cmd console.<Edit>You may also prefer to try this"%COMSPEC% /C CD /D C:\MASTERS &&EXTRACT /YE D620.CAB" /F</Edit> Edited May 26, 2006 by Yzöwl 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