Jump to content

Problem with RunOnceEx.cmd on Windows 2000 Pro


Recommended Posts

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

Link to comment
Share on other sites


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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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