MSFN Forum: start.cmd ? RunOnceEx.cmd: ? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

start.cmd ? RunOnceEx.cmd: ? Rate Topic: -----

#1 User is offline   Sesshoumaru 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 11-August 04

Posted 12 August 2004 - 08:52 PM

cleanup.cmd ?
prepeare.cmd ?


i find examples of those in the unattended guide, but it doesn't tell me how to use them :)

i think using a batch file is old stile now, where can i read about those ?


#2 User is offline   RichTJ99 

  • Member
  • PipPip
  • Group: Members
  • Posts: 135
  • Joined: 25-July 04

Posted 12 August 2004 - 10:16 PM

http://unattended.ms...p/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.

#3 User is offline   Klif! 

  • Group: Members
  • Posts: 2
  • Joined: 05-August 04

Posted 12 August 2004 - 10:36 PM

To be honest if there is not a special reason to devide those commands in different files I would use just the RunOnceEx.cmd. But that is just me.

#4 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 12 August 2004 - 10:57 PM

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.

#5 User is offline   Sesshoumaru 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 11-August 04

Posted 13 August 2004 - 05:02 PM

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

Attached File(s)



#6 User is offline   Sesshoumaru 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 11-August 04

Posted 13 August 2004 - 06:34 PM

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"

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy