Macromorph Posted November 21, 2005 Posted November 21, 2005 Hi,I made my own unattended XP install.Problem is the applications I added are not unattended installed:I've got this error in setuperr.log :(translated from french )Warning: Setup was unabe to invoke external program runonceex.cmdCreateProcess returned error 2 (2).***Error:Setup was unable to execute the commands in $OEM$\OEMFILES\cmdlines.txt.My cmdlines.txt is :[COMMANDS]"runonceex.cmd"My runonceex.cmd is:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation des applications" /fREG ADD %HEY%\005 /VE /D "MSN Messenger 7.5" /fREG ADD %HEY%\005 /V 1 /D "%Systemdrive%\INSTALL\MSN\MsnMsgs.msi /qn" /fREG ADD %HEY%\010 /VE /D "Emule 0.46c" /fREG ADD %HEY%\010 /V 1 /D "%Systemdrive%\INSTALL\EMULE\emule.exe /S" /fREG ADD %HEY%\015 /VE /D "Winamp 5" /fREG ADD %HEY%\015 /V 1 /D "%Systemdrive%\INSTALL\WINAMP\winamp.msi /qn Xfull=1 XDesktop=0 XQuicklaunch=1" /fREG ADD %KEY%\090 /VE /D "Ajout des utilisateurs" /fREG ADD %KEY%\090 /V 1 /D "%Systemdrive%\INSTALL\comptes.cmd" /fREG ADD %KEY%\095 /VE /D "Modification de la base de registre" /fREG ADD %KEY%\095 /V 1 /D "REGEDIT /S %Systemdrive%\INSTALL\regmodif.reg" /fREG ADD %KEY%\099 /VE /D "Nettoyage et Reboot" /fREG ADD %KEY%\099 /V 1 /D "%Systemdrive%\INSTALL\cleanup.cmd" /fEXITcmdow.exe is in $OEM$\$$\system32\all other files at their places.I don't get it, could you help me pleaseThx in advance
cluberti Posted November 21, 2005 Posted November 21, 2005 That looks correct, but I've got a better solution that cmdlines.txt that is less prone to error (at least for me ).Place your runonceex.cmd file in $oem$\$1\TEMP on your CD, then in your Winnt.sif file, use the [setupParams] section to call your script:[SetupParams] UserExecute=%systemdrive%\temp\runonceex.cmdThis will execute at T-9 during setup, with no need for a cmdlines.txt or any other files to keep track of.
Macromorph Posted November 21, 2005 Author Posted November 21, 2005 Well I think i'm gonna try your solutionI forgot to say that in a previous version my comptes.cmd file was called from the cmdlines.txt, line under runonceex.cmd and comptes.cmd ran successfuly.
Macromorph Posted November 22, 2005 Author Posted November 22, 2005 with your method i get this now :Warning: Setup was unabe to invoke external program c:\temp\runonceex.cmdCreateProcess returned error 2 (2).***Could it be because my file is renamed runonc~1.cmd ?
nmX.Memnoch Posted November 22, 2005 Posted November 22, 2005 That's definitely it. Is the file getting renamed during install? If so, that's yet another problem because it shouldn't be...
Macromorph Posted November 22, 2005 Author Posted November 22, 2005 That's definitely it. Is the file getting renamed during install? If so, that's yet another problem because it shouldn't be...well it's cdimage who shrinked the file names. It's ok now it works.It didn't work the first time and you can now all laugh at me look, and I searched like 1 hour why it didn't work properly:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation des applications" /fREG ADD %HEY%\005 /VE /D "MSN Messenger 7.5" /fREG ADD %HEY%\005 /V 1 /D "%Systemdrive%\INSTALL\MSN\MsnMsgs.msi /qn" /fREG ADD %HEY%\010 /VE /D "Emule 0.46c" /fREG ADD %HEY%\010 /V 1 /D "%Systemdrive%\INSTALL\EMULE\emule.exe /S" /fREG ADD %HEY%\015 /VE /D "Winamp 5" /fREG ADD %HEY%\015 /V 1 /D "%Systemdrive%\INSTALL\WINAMP\winamp.msi /qn Xfull=1 XDesktop=0 XQuicklaunch=1" /fREG ADD %KEY%\090 /VE /D "Ajout des utilisateurs" /fREG ADD %KEY%\090 /V 1 /D "%Systemdrive%\INSTALL\comptes.cmd" /fREG ADD %KEY%\095 /VE /D "Modification de la base de registre" /fREG ADD %KEY%\095 /V 1 /D "REGEDIT /S %Systemdrive%\INSTALL\regmodif.reg" /fREG ADD %KEY%\099 /VE /D "Nettoyage et Reboot" /fREG ADD %KEY%\099 /V 1 /D "%Systemdrive%\INSTALL\cleanup.cmd" /fEXIT
cluberti Posted November 23, 2005 Posted November 23, 2005 Wow - (inner_monologue) gotta stop drinking... (/inner_monologue)
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