Jump to content

Recommended Posts

Posted

The beginning of my runonceex.cmd file for a Windows 2000 Pro install looks like this:

@Echo Off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Application Installer" /f

REG ADD %KEY%\004 /VE /D "Extracting D620 Software" /f

REG ADD %KEY%\004 /V 1 /D "C:\masters\extract.exe /Y /E /L C:\masters\ C:\masters\D620.CAB\" /f

REG ADD %KEY%\009 /VE /D "Dell Notebook System Software" /f

REG ADD %KEY%\009 /V 1 /D "C:\masters\D620\System\setup.exe -S" /f

When 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???


Posted (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" /F

extract 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 by Yzöwl

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...