Jump to content

RunOnceEx


Recommended Posts

iv got loads of programs on my batch file and the menu goes of the screen is there any way which i can do this below:-

>Office

>office

>frontpage

>etc

>Media

>

>

>

>Applications

>

>

ive seen the above, what it does is to expand the current cattegory then callopse it once all the programs have been installed, anybody know how i can do this?

Link to comment
Share on other sites


In your WinNT.sif file under [GuiRunOnce] add lines to future files like so:

[GuiRunOnce]
"%systemdrive%\Install\Tools\Tools - Archive.cmd"
"%systemdrive%\Install\Tools\Tools - CD-DVD.cmd"
"%systemdrive%\Install\Tools\Tools - Java.cmd"
"%systemdrive%\Install\Tools\Tools - Macro.cmd"
"%systemdrive%\Install\Tools\Tools - Media.cmd"
"%systemdrive%\Install\Tools\Tools - Network.cmd"
"%systemdrive%\Install\Tools\Tools - Office.cmd"
"%systemdrive%\Install\Tools\Tools - Shell.cmd"
"%systemdrive%\Install\Tools\Tools - Spyware.cmd"
"%systemdrive%\Install\Tools\Tools - System.cmd"
"%systemdrive%\Install\Tools\Tools - Text.cmd"
"%systemdrive%\Install\Tools\Tools - Viewers.cmd"
"%systemdrive%\Install\Tools\Tools - Web.cmd"

Each file is then coded up like so:

cmdow @ /HID
@echo off

for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\WIN51 set CDROM=%%i

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


REG ADD %KEY% /V TITLE /D "Installing CD & DVD Tools" /f

REG ADD %KEY%\005 /VE /D "Installing ASPI Layer" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\ASPI\ASPI.cmd" /f

REG ADD %KEY%\010 /VE /D "Installing Alcohol 120%" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\Alcohol\Alcohol_120%_1.9.2_au3.exe" /f

REG ADD %KEY%\015 /VE /D "Installing AutoPlay Media Studio" /f
REG ADD %KEY%\015 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\AutoPlay Media Studio\AutoPlay_Media_Studio_5.0.0.1_au3.exe" /f

REG ADD %KEY%\020 /VE /D "Installing BlindWrite" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\BlindWrite\BlindWrite_5.2.5_au3.exe" /f

REG ADD %KEY%\025 /VE /D "Installing CD-Eject" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\CD-Eject\CD-Eject_2.62_au3.exe" /f

REG ADD %KEY%\030 /VE /D "Installing CDR Diagnostic" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\CDR Diagnostic\CDR_Diagnostic_1.7.2_au3.exe" /f

REG ADD %KEY%\035 /VE /D "Installing DVDInfo" /f
REG ADD %KEY%\035 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\DVDInfo\DVDInfo_Pro_3.29_au3.exe" /f

REG ADD %KEY%\040 /VE /D "Installing EasyBoot" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\EasyBoot\EasyBoot_5.0.3.426_au3.exe" /f

REG ADD %KEY%\045 /VE /D "Installing ISOBuster" /f
REG ADD %KEY%\045 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\IsoBuster\IsoBuster_1.6_au3.exe" /f

REG ADD %KEY%\050 /VE /D "Installing NERO" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\Nero\nero6316.exe /SN=****-****-****-****-****-**** /WRITE_SN /SILENT /NOREBOOT" /f

REG ADD %KEY%\055 /VE /D "Installing UltraISO" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\SOFTWARE\Tools - CD-DVD\UltraISO\UltraISO_ME_7.2.2.872_au3.exe" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

Each file will be executed one after the other...enjoy

Link to comment
Share on other sites

sorry pic out the top didnt come out write should look like below

>Office

_____>office

_____>frontpage

_____>etc

>Media

_____>

_____>

_____>

>Applications

_____>

_____>

the catergorys then collapse after all within the categorys have been installed then goes onto next one.

Link to comment
Share on other sites

chrno2004 -

Heh sure you may ask but that doesn't mean you'll get an answer. ;)

J\K

What it does is execute all the entrys you just made in the RunOnce reg key. So in the above example you would see a dialog list called "Installing CD & DVD Tools" that would look some thing like so:

Installing CD & DVD Tools

Installing ASPI Layer

Installing Alcohol 120%

Installing AutoPlay Media Studio

Installing BlindWrite

Installing CD Eject Tool

Installing CDR Diagnostic

Installing DVDInfo

Installing EasyBoot

Installing ISOBuster

Installing NERO

Installing UltraISO

After that one completes it would disappear and a new dialog list would be displayed....lets say Tools - Shell is next...you would then see

Installing Shell Tools

Installing Active Captions

Installing BootSkin

Installing Chameleon Clock

Installing Cool Desk

Installing CursorXP

Installing Desktop X

Installing IconPackager

Installing IconX

Installing LogonStudio

Installing ObjectBar

Installing ObjectDock

Installing PT CMD Here

Installing PT DeskManager

Installing PT ImageResizer

Installing PT Media Player

Installing PT Power Calculator

Installing PT TaskSwitcher

Installing PT TweakUI

Installing PT WallPaper Changer

Installing ShellToys_XP

Installing Tray Factory

Installing TrueLaunchBar

Installing WebBlinds

Installing WindowBlinds

So on and so forth....just one dialog at a time...and only one displayed...no clutter and nothing running off the screen...and all happening prior to first logon.

Hope that explains it...

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