Jump to content

Recommended Posts

Posted (edited)

I am not quite understanding the comands in runonceex.cmd

here is the example from the unattended Windows guide

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /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%\010 /VE /D "Alcohol 120" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\alcohol\setup.exe /qn" /f

REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\register.reg" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 8" /f

REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\DiskeeperPro_8.0.459.exe /s /v/qn" /f

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /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

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f

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

Now what is the command in red doing ?

REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

Again the same thing here, also I see the /V and /D also /f at the end of the command ? these must be switches of some kind

Please forgive my ignorance :hello:

EDIT:

I am also having some trouble with cleanup.cmd

why would this not work ?

DEL "%WINDIR%\Media\Windows XP Ding.wav"

Edited by Cti

Posted

runonecex.cmd is just a batch file.

If you open a command window and

type reg.exe /?

You will get help on the command and switches

and what they do.

don't know about cleanup.cmd, it looks

like that should work to me too.

Posted (edited)

also from the guide:

"In short, all you really need to do is duplicate each REG ADD entry, but change the numbering and everything enclosed in quotations. If you want more information, type REG ADD /? at the Command Prompt"

lays it out very nicely what all the switches are :)

as for the cleanup, maybe because it is protected and/or remakes itself? thats just a spit in the dark. no idea really

Edited by leadboots5
Posted (edited)

Thanks , I guess I can figure out all the switches ...

I am still wondering what

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

why have a reg key for importing registry tweaks .. the first one .. I don't get it ?

EDIT:

Yeah maybe it needs the /Q switch .. I will try

Edited by Cti
Posted

There could be tweaks that don't work unless they

are applied after setup has finished and your logged

into windows.

I have a tweak that unchecks the 'always show confirmation

when deleting files' thats on the recycle bin when you right click.

that doesn't work unless I apply it after I've loggee on

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