Jump to content

can RunOnceEx.cmd run at win2000 unattended?


Recommended Posts


Ok, here we go

1- in your $OEM$ folder, you must have a file named cmdline.txt with this content:

[Commands]
".\parse.bat"
".\runonce.bat"

2- Here is the content of parse.bat (commands always on a single line):

@echo off
echo BlaBlaBla
type %systemdrive%\install\Applications\runonce.txt|%windir%\system32\sed.exe 's/\%%systemdrive\%%/%systemdrive%/g'>%systemdrive%\runonce.reg

3- Here is the content of runonce.bat:

@echo off
echo BlaBlaBla
%windir%\regedit.exe /s %systemdrive%\runonce.reg

4- You can put runonce.txt where you want in $OEM$ but ajust parse.bat in consequence. Here is the content of it:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
"Title"="Your TITLE"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz01]
"1"="%systemdrive%\\install\\Applications\\directx\\dxsetup.exe /silent"
@="Installation de DirectX 9.0c"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz02]
"1"="%systemdrive%\\winnt\\regedit.exe /s %systemdrive%\\winapps\\Nero\\register.reg"
"2"="%systemdrive%\\install\\Applications\\Nero\\NERO.exe /silent /noreboot /no_ui"
"3"="%systemdrive%\\install\\Applications\\Nero\\FR.exe /silent /noreboot /no_ui"
@="Nero Burning ROM Reloaded 6.6.0.1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz03]
"1"="%systemdrive%\\install\\Applications\\AdobeReader\\AR6.msi /qn"
@="Acrobat Reader 6.0.1"

And so on... you get the idea...

5- Lastly, you must put sed.exe in $OEM$\$$\System32

DOWNLOAD HERE

Well, that's about it... hope I haven't forgot anything B)

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