Jump to content

start.cmd ? RunOnceEx.cmd: ?


Recommended Posts


http://unattended.msfn.org/xp/runonceex.htm

That should cover it but the quick version is that if your runonceex.cmd file was this:

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdobeReader6\AR6.msi /qn" /f

REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

You would make a prepare.cmd file for things you want the runonceex.cmd to do before it got rolling.

Then you would use a cleanup.cmd for what you want it to do at the end (like deleting stuff, etc).

You could use it all in the runonceex.cmd if you wanted to but it looks cooler this way.

Link to comment
Share on other sites

you don't want to use RunOnceEX.CMD to call the commands within the other two. If you added an entry (another reg set) to call the combined second batch file (prepare.cmd and cleanup.cmd) then it will work.

runonceex.cmd does NOT execute the programs. Technically setupapi.dll does upon restart. Runonceex.cmd just adds the entries to the registry telling setupapi.dll what to do. If you were to remove the files in runonceex.cmd (cleanup.cmd) then when setupapi.dll runs upon start you'll have nothign but errors.

Link to comment
Share on other sites

well, i gave it a try, but my instalation stalls during th e final steps, of the OS instalation (way before it loads for the first time).

maybe i did something wrong when i moved forom the batch files to this method, so i am attaching the new files along with the old batch file, can someone take a look at it?

also, i didn't find instructions for intalling RegscrubXP or SAV corporate 9, or a .exe for usb instalation.

here are their spesific lines:

REG ADD %KEY%\041 /VE /D "regscrubXP 3.25" /f

REG ADD %KEY%\041 /V 1 /D "%systemdrive%\install\applications\regscrubXP\RegScrubXPSetup_3.2.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\045 /VE /D "usb" /f

REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\usb\U2V2_1_2_1.EXE /s /qn"

REG ADD %KEY%\035 /VE /D "SAV corporate v9" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\SAV\Symantec AntiVirus.msi /qn" /f

xp_con_sp2.rar

Link to comment
Share on other sites

also, is this line ok, or is it TOO long ?

OemPnPDriversPath="drivers\SATA;drivers\video;drivers\audiodrv;drivers\audioutl;drivers\ethernet;drivers\GART;drivers\smbus;drivers\IDE\winxp;drivers\memctl;drivers\ethernet\preNRM\winxp;drivers\monitor;Drivers\006_storage;Drivers\006_storage\3ware;Drivers\006_storage\3ware\6000;Drivers\006_storage\3ware\7k&8k;Drivers\006_storage\acard;Drivers\006_storage\acard\6280;Drivers\006_storage\acard\6290;Drivers\006_storage\acard\67160;Drivers\006_storage\acard\671x;Drivers\006_storage\acard\6880;Drivers\006_storage\acard\6890;Drivers\006_storage\acard\68x5;Drivers\006_storage\adaptec;Drivers\006_storage\adaptec\aac;Drivers\006_storage\adaptec\aar1210;Drivers\006_storage\adaptec\i2o;Drivers\006_storage\adaptec\u160;Drivers\006_storage\adaptec\u320;Drivers\006_storage\adaptec\u320r;Drivers\006_storage\ali;Drivers\006_storage\amd;Drivers\006_storage\highpoint;Drivers\006_storage\highpoint\hpt366;Drivers\006_storage\highpoint\hpt371;Drivers\006_storage\highpoint\hpt374;Drivers\006_storage\highpoint\hpt3xx;Drivers\006_storage\highpoint\rr182x;Drivers\006_storage\intel;Drivers\006_storage\intel\eide;Drivers\006_storage\intel\sataraid;Drivers\006_storage\intel\u320r;Drivers\006_storage\ite;Drivers\006_storage\lsilogic;Drivers\006_storage\lsilogic\megaide;Drivers\006_storage\lsilogic\mraid35x;Drivers\006_storage\lsilogic\mylex;Drivers\006_storage\lsilogic\symmpi;Drivers\006_storage\nvidia;Drivers\006_storage\nvidia\eide;Drivers\006_storage\nvidia\raid;Drivers\006_storage\promise;Drivers\006_storage\promise\fasttrak;Drivers\006_storage\promise\fasttx2k;Drivers\006_storage\promise\sx4000;Drivers\006_storage\promise\sx6000;Drivers\006_storage\promise\ulsata;Drivers\006_storage\promise\ultra;Drivers\006_storage\qlogic;Drivers\006_storage\qlogic\12160;Drivers\006_storage\siimage;Drivers\006_storage\siimage\3112;Drivers\006_storage\siimage\3112r;Drivers\006_storage\siimage\3114;Drivers\006_storage\siimage\3114r;Drivers\006_storage\siimage\3124;Drivers\006_storage\siimage\3124r;Drivers\006_storage\siimage\649r;Drivers\006_storage\siimage\680;Drivers\006_storage\siimage\680r;Drivers\006_storage\sis;Drivers\006_storage\sis\eide;Drivers\006_storage\sis\raid;Drivers\006_storage\via;Drivers\006_storage\via\eide;Drivers\006_storage\via\ideraid;Drivers\006_storage\via\miniport;Drivers\006_storage\via\sataraid"

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