Jump to content

RunOnceEx - improvement ?


Recommended Posts

Hi there folks,

I've finished my unattended CD but to what surprise, the RunOnceEx window where it actualy installs the apps is BIG , I mean really big, because I have many things, is there a way to have 2 windows, or 2 columns or any workaround ?!!

Here it is :

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 "Ad-Aware 6.181" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AdAware\aaw6181.exe /s" /f

REG ADD %KEY%\010 /VE /D "Adobe Reader 6.0.1" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\AdobeReader6\AdbeRdr60_enu_full.exe -p\"-s /v\"/qn\"\"" /f

REG ADD %KEY%\010 /VE /D "Alcohol 120 v1.9.2.1705" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Alcohol120\setup.exe /qn" /f

REG ADD %KEY%\015 /VE /D "Daemon Tools 3.46" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Daemon\daemon.msi /qb REBOOT=Suppress" /f

REG ADD %KEY%\016 /VE /D "DC++ 0.401" /f
REG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\DCPlusPlus\DCPlusPlus-0.401.exe /S" /f

REG ADD %KEY%\017 /VE /D "Firefox 0.9.1" /f
REG ADD %KEY%\017 /V 1 /D "%systemdrive%\install\Firefox\setup.exe -ms -ira" /f

REG ADD %KEY%\020 /VE /D "Google Toolbar 2.0.102" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Google\Google.exe /qn" /f

REG ADD %KEY%\025 /VE /D "IrfanView 3.91" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\IrfanView\iview391.exe /silent /folder="%programfiles%\irfanview\" /desktop=1 /group=1 /allusers=0 /assoc=1" /f
REG ADD %KEY%\025 /V 2 /D "%systemdrive%\install\IrfanView\all_plugins.exe /silent" /f

REG ADD %KEY%\030 /VE /D "K-Lite codec pack 2.27F" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\KLiteCodec\klcodec227f.exe /silent" /f

REG ADD %KEY%\035 /VE /D "Kazza Lite K++ 2.43e" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\KazaaLite\klitekpp243e.exe /silent" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 6.2.0137" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MSN\MsnMsgs.msi /QB" /f

REG ADD %KEY%\044 /VE /D "Nero Burning ROM v6.3.1.17" /f
REG ADD %KEY%\044 /V 1 /D "%systemdrive%\install\Nero\Nero63117.exe /silent /noreboot /SN=REMOVED /WRITE_SN" /f

REG ADD %KEY%\045 /VE /D "OO Defrag Pro 6.5.851" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\OO_DefragPro\oo_defrag_pro.msi /QB" /f
REG ADD %KEY%\045 /V 2 /D "REGEDIT /S %systemdrive%\install\OO_DefragPro\register.reg" /f

REG ADD %KEY%\050 /VE /D "PowerQuest PartitionMagic 8.0.1242" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\install\PMagic\setup.exe /s /v/qn" /f
REG ADD %KEY%\050 /V 2 /D "REGEDIT /S %systemdrive%\install\PMagic\register.reg" /f

REG ADD %KEY%\055 /VE /D "Putty 0.54" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\Putty\putty-0.54-installer.exe /sp- /silent /norestart" /f

REG ADD %KEY%\060 /VE /D "QuickTime 6" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\QuickTime6\QuickTimeInstaller.exe" /f

REG ADD %KEY%\065 /VE /D "TweakUI 2.10 Powertoy" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\PowerToys\TweakUI.msi /qb" /f

REG ADD %KEY%\066 /VE /D "Task Switcher Powertoy" /f
REG ADD %KEY%\066 /V 1 /D "%systemdrive%\install\PowerToys\TaskswitchPowertoySetup.exe /s /v/qn" /f

REG ADD %KEY%\070 /VE /D "Total Commander 6.03a" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\totalcmd\tcmd603a.exe" /f
REG ADD %KEY%\070 /V 2 /D "CMD /C copy %systemdrive%\install\TotalCmd\wincmd.ini %systemroot%" /f
REG ADD %KEY%\070 /V 3 /D "CMD /C copy %systemdrive%\install\TotalCmd\wincmd.ini c:\totalcmd" /f
REG ADD %KEY%\070 /V 4 /D "CMD /C copy %systemdrive%\install\TotalCmd\totalcmd.exe c:\totalcmd" /f

REG ADD %KEY%\074 /VE /D "WinAmp 5.04" /f
REG ADD %KEY%\074 /V 1 /D "%systemdrive%\Install\Winamp\winamp.msi /qb INI="%systemdrive%\Install\Winamp\winamp.ini" /f

REG ADD %KEY%\075 /VE /D "WinISO 5.3" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\winiso\winiso.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\080 /VE /D "WinRAR 3.30" /f
REG ADD %KEY%\080 /V 1 /D "%systemdrive%\install\WinRAR\wrar330.exe /s" /f

REG ADD %KEY%\081 /VE /D "Yahoo Messenger 6" /f
REG ADD %KEY%\081 /V 1 /D "%systemdrive%\install\YMsgr\ymsgr_1643.exe /s" /f
REG ADD %KEY%\081 /V 2 /D "pskill.exe Ypager.exe" /f

REG ADD %KEY%\085 /VE /D "ZoneAlarm with Antivirus 5.0.590.043" /f
REG ADD %KEY%\085 /V 1 /D "%systemdrive%\install\ZoneAlarm\zalarm.exe /s /noreboot" /f
REG ADD %KEY%\085 /V 2 /D "REGEDIT /S %systemdrive%\install\ZoneAlarm\register.reg" /f

REG ADD %KEY%\090 /VE /D "Creative SB Live! Value Drivers 10/03/2003" /f
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\Drivers\Creative\CTZAPXX.exe /q /o /r" /f

REG ADD %KEY%\095 /VE /D "VIA Hyperion 4in1 5.51v" /f
REG ADD %KEY%\095 /V 1 /D "%systemdrive%\Drivers\VIAHyperion\Setup.exe -s" /f

REG ADD %KEY%\097 /VE /D "Applying Registry Tweaks..." /f
REG ADD %KEY%\097 /V 1 /D "REGEDIT /S %systemdrive%\install\RegTweaks.reg" /f

REG ADD %KEY%\098 /VE /D "Installing Hotfixes" /f
REG ADD %KEY%\098 /V 1 /D "%systemdrive%\install\hotfixes.cmd" /f

REG ADD %KEY%\099 /VE /D "Creating User Accounts" /f
REG ADD %KEY%\099 /V 1 /D "%systemdrive%\install\adduser.cmd" /f

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

EXIT

fallout

Link to comment
Share on other sites


Since I had a similar problem, with the menu being too big this may help you...

  • Goto http://unattended.msfn.org/xp/downloads.htm and download the bottom utility named 'Video Resolution Changer'.
  • Follow the instructions on that page and copy the exe to the ..\$OEM$\$$\System32 folder
  • Copy the usage command on the page and include it in one of your batch files, I recommend you include it in Prepare.cmd

Now what will happen (fingers crossed!) is when Windows starts it will display the menu, run all the commands in Prepare.cmd and change your screen resolution to whatever you changed the usage command to.

Sorted :)

(I appologise if you did actually want it in two windows etc, but this method worked ok for me!)

Link to comment
Share on other sites

this method can interest me to solve my screen resolution problem (blocked in 640x480, using RunOnceEx..)

i would change my screen resolution to 1024x768, and if it is possible make 2 columns for the RunOnceEx box :)

i made one thing to change the screen resolution : this line below is correct or i have to modify it ??

(note: i placed the 1365VidChng.exe in \$oem\$$\System32\ , and i don't use a prepare.cmd)

REG ADD %KEY%\001 /VE /D "change screen resolution to 1024x768" /f
REG ADD %KEY%\001 /V 1 /D "%systemroot%\system32\1365VidChng.exe 1024x768x32@85 -q" /f

Thx for you answers

Link to comment
Share on other sites

i placed the 1365VidChng.exe in \$oem\$$\System32\ , and i don't use a prepare.cmd)

REG ADD %KEY%\001 /VE /D "change screen resolution to 1024x768" /f
REG ADD %KEY%\001 /V 1 /D "%systemroot%\system32\1365VidChng.exe 1024x768x32@85 -q" /f

Seems ok to me, just ensure that the program is in \$OEM$\... not \$OEM\... as you had previously typed, if it was a typo I apologise :)

Your command will work fine -- the only reason I put it in prepare.cmd is because I have other commands to be carried out (e.g. deleting shortcuts) before installing my applications, it also helps keep things neat and tidy.

Link to comment
Share on other sites

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=85

Seems to me that including those commands in 'Winnt.sif' doesn't always work for some people.

I play it safe and use both methods just to be doubly sure, if the 'Winnt.sif' method doesn't work then I know the 2nd option will.

Link to comment
Share on other sites

Too bad my xp hangs at T-33 Installing Devices lately, and failed to fix it yet.

That happens when your driver (*.sy_) files are corrupted somewhere. The program you use to make the ISO matters, as well - because I found UltraISO gave the problem you mention, whereas cdimageGUI did not.

Link to comment
Share on other sites

[Display]
   BitsPerPel=32
   Xresolution=1024
   YResolution=768
   Vrefresh=85

Seems to me that including those commands in 'Winnt.sif' doesn't always work for some people.

I play it safe and use both methods just to be doubly sure, if the 'Winnt.sif' method doesn't work then I know the 2nd option will.

yes, it doesn't work on my computer.

so it will have no problem i think with VideoChanger.

thx.

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