Kapo Posted September 26, 2005 Posted September 26, 2005 aaaaaaa ok, now i've understand...There isn't the possibility of making two windows true?
tap52384 Posted September 26, 2005 Author Posted September 26, 2005 The code that Zxian posted won't create a second window with a different title than the original one...instead, "category 1" and "category 2" are instead names of the items being installed...
Zxian Posted September 26, 2005 Posted September 26, 2005 Yes, with my method, you will have one window. Instead of listing every program that I install, I list the types of programs currently being installed. Who sits there and watches their UA CD install anyways... isn't that the point of a UA install? I haven't tried jdgordon's method, but then again, there's always VMWare for you to use.
yoz7120 Posted September 26, 2005 Posted September 26, 2005 (edited) I split my RunOnceEx into blocks of 20 and end each block with rundll32.exe iernonce.dll,RunOnceExProcess and then start the numbering sequence back at 000. Been using this method without any problems.cmdow @ /HID@ECHO OFFset tagfile=\WIN51for %%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:%tagfile%" set DVD=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExSET I=%DVD%\Install\REG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /V 1 /D "%I%ISScript\ISScript.msi /norestart /qn" /fREG ADD %KEY%\001 /VE /D "Belkin Wireless 54g" /fREG ADD %KEY%\001 /V 2 /D "%I%Belkin\BelkinWiFi.exe" /fREG ADD %KEY%\002 /VE /D "NET Framework 1.1 SP1" /fREG ADd %KEY%\002 /V 1 /D "%I%Net\netfxsp1.exe" /fREG ADD %KEY%\003 /VE /D "Autopatcher v5.1" /fREG ADD %KEY%\003 /V 1 /D "%I%Autopatcher\Autopatcher.exe /unattend:t2 /skipdetection /noeula /noreboot" /fetc......etc......REG ADD %KEY%\020 /VE /D "Block List Manager v2.5.3" /fREG ADD %KEY%\020 /V 1 /D "%I%Blocklist\Blocklist_Manager.exe" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %I%RegFiles\BLMSetting.reg" /frundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /vE /D "Hosts Manager v1.6.4.0" /fREG ADD %KEY%\000 /V 1 /D "msiexec /i \"%I%HostManager\HostsManager.msi\" /qn" /fREG ADD %KEY%\001 /VE /D "Agnitum Tauscan v1.70.1414" /fREG ADD %KEY%\001 /V 1 /D "%I%Tauscan\Tauscan.exe /S" /fREG ADD %KEY%\001 /V 2 /D "REGEDIT /S %I%RegFiles\Agnitum.reg" /fREG ADD %KEY%\002 /VE /D "Smart WhoIs v4.0.0.157" /fREG ADD %KEY%\002 /V 1 /D "%I%Smart\SmartWhoIs.exe /s" /fREG ADD %KEY%\002 /V 2 /D "%I%Smart\Update.exe /s" /fREG ADD %KEY%\002 /V 3 /D "REGEDIT /S %I%RegFiles\SmartWhoIs.reg" /fetc......etc......REG ADD %KEY%\019 /VE /D "LClock v1.62b"REG ADD %KEY%\019 /V 1 /D "%I%LClock\LC162b.exe /S" /fREG ADD %KEY%\019 /V 2 /D "%I%LClock\LClock.exe /s" /fREG ADD %KEY%\019 /V 3 /D "%I%LClock\LClock_Start.exe /s" /fREG ADD %KEY%\020 /VE /D "Norton Ghost v9.0" /fREG ADD %KEY%\020 /V 1 /D "msiexec /i %I%Ghost\Norton_Ghost_9.0.msi SERIALNUMBER=xxxx-xxxx-xxxx-xxxx REBOOT=ReallySuppress /qn" /frundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%\000 /VE /D "Office and Frontpage Pro 2003" /fREG ADD %KEY%\000 /V 1 /D "%I%Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-!" /fREG ADD %KEY%\000 /V 2 /D "%I%Frontpage\setup.exe TRANSFORMS=Unattended.MST /qb-!" /fREG ADD %KEY%\000 /V 3 /D "REGEDIT /S %I%Regfiles\OutlookSettings.reg" /fREG ADD %KEY%\001 /VE /D "Winamp Pro v5.094" /fREG ADD %KEY%\001 /V 1 /D "%I%Winamp\Winamp5094.msi INI="%I%Winamp\Winamp.ini /qn"" /fREG ADD %KEY%\001 /V 2 /D "%I%Winamp\Winamp-Files.exe /s" /fREG ADD %KEY%\002 /VE /D "Ahead Nero and NeroVision" /fREG ADD %KEY%\002 /V 1 /D "REGEDIT /S %I%RegFiles\NeroReg.reg" /fREG ADD %KEY%\002 /V 2 /D "%I%Nero\Nero_Custom_Setup.exe" /fREG ADD %KEY%\002 /V 3 /D "%I%Nero\Plugins.exe /s" /fREG ADD %KEY%\002 /V 4 /D "REGEDIT /S %I%RegFiles\XP_Filetype_Restore.reg" /fREG ADD %KEY%\002 /V 5 /D "REGEDIT /S %I%Regfiles\NeroTweak.reg" /fetc.....etc.....etc.....REG ADD %KEY%\019 /VE /D "RatDVD v0.76.1408" /fREG ADD %KEY%\019 /V 1 /D "%I%RatDVD\ratDVD.exe /S" /fREG ADD %KEY%\020 /VE /D "Macromedia Flash Player v8" /fREG ADD %KEY%\020 /V 1 /D "msiexec /i \"%I%Flash\Flash_Player_8.msi"\ /norestart /qn" /fREG ADD %KEY%\998 /VE /D "Cracking Installed Applications" /fREG ADD %KEY%\998 /V 1 /D "REGEDIT /S %I%RegFiles\RegTweaks.reg" /fREG ADD %KEY%\998 /V 2 /D "%I%Favorites.exe /s" /fREG ADD %KEY%\998 /V 3 /D "%I%Desktop.exe /s" /fREG ADD %KEY%\998 /V 4 /D "%I%QuickLaunch.exe /s" /fREG ADD %KEY%\998 /V 5 /D "REGEDIT /S %I%RegFiles\WMP10.reg" /fREG ADD %KEY%\998 /V 6 /D "REGEDIT /S %I%RegFiles\Blocklist.reg" /fREG ADD %KEY%\998 /V 7 /D "%I%Associations.cmd" /fREG ADD %KEY%\998 /V 8 /D "%I%Media.exe /s" /fREG ADD %KEY%\998 /V 9 /D "REGEDIT /S %I%RegFiles\SpywareFix.reg" /fREG ADD %KEY%\998 /V 10 /D "REGEDIT /S %I%RegFiles%\XP_FileType_Restore.reg" /fREG ADD %KEY%\998 /V 11 /D "%I%\Hosts.exe /s" /fREG ADD %KEY%\999 /VE /D "Removing Evidence and Rebooting" /fREG ADD %KEY%\999 /V 1 /D "%DVD%\Restart.cmd" /frundll32.exe iernonce.dll,RunOnceExProcessEXIT Edited September 26, 2005 by yoz7120
Asin Posted September 26, 2005 Posted September 26, 2005 yoz7120, good for you for voluntarily admitting to using warez.
yoz7120 Posted September 26, 2005 Posted September 26, 2005 Not any more.... Forgot to remove my serial as well....
tap52384 Posted September 26, 2005 Author Posted September 26, 2005 yoz7120, I tried your method with unquestionable success; instead of placing all of the keys in the registry at the T-12 stage of an XP installation, you create the registry keys on-the-fly for each category. It's genius, but I have two questions:1) Why not zip up all of your applications into a self-extracting archive using 7zip? Reluctantly, I'll admit that I use an IBM Thinkpad R31 that did not come with a DVD capable drive. Thus, I use Nlite (big props to Nuhi, by the way) to reduce the source to 212.39 MB (no IE!), and then use the remaining space to include a great deal of programs, with the exception of Microsoft Office and Microsoft Visual Studio .NET 2003. Additionally, I copy the self-extracting archive to the root of the C: drive using the OEMPreInstall option in winnt.sif, since I figured an install using the hard drive is faster than that from a DVD or CD. 2) Although his method works perfectly, is this the only way to do it, or is it possible to actually have it work by completely using registry entries?
yoz7120 Posted September 26, 2005 Posted September 26, 2005 Glad it worked for you tap52384. To answer your questions1. Too lazy. Everything I install including windows only takes up 2.9gb on the DVD so plenty of space left before I think about having to shrink down the installation files.2. Not sure its just the method I found that works, maybe someone else can answer this for you.
tap52384 Posted September 27, 2005 Author Posted September 27, 2005 I think this information about customizing RunOnceEx should be added to http://unattended.msfn.org.Speaking of which, are there any planned updates to that site? There are some things that could be added, like nLite specifics, a permanent home for registry tweaks, and an updated list of necessities for installations, like popular codec packages and silent installation switches.
Zxian Posted September 27, 2005 Posted September 27, 2005 Yup, Alanoll is working on an update of the site. Leave him alone to do it. The site will be a fairly significant update, so sit tight everyone.
drscouse Posted September 27, 2005 Posted September 27, 2005 Doesnt work for me :-(I think its because I let the system reboot after a couple of patches, then continue with the scipt.. however, this prevents the additional windows opening up somehow. If I remove the reboot command, it works fine..but I need to reboot to apply all my post sp2 hotfixes and patches, before installing my apps...
Zxian Posted September 27, 2005 Posted September 27, 2005 Why don't you integrate the post-SP2 hotfixes with nLite (even if you don't use it to strip down XP) instead of installing them from RunOnceEx?Your total CD size will be much smaller as well since files will no longer be duplicated.
tap52384 Posted September 28, 2005 Author Posted September 28, 2005 (edited) drscouse, from the way the script is currently written, a reboot would only allow it to complete the currently written registry entries in the RunOnceEx key. I imagine (hope nevertheless) that this could work:REG ADD %KEY%\020 /VE /D "Block List Manager v2.5.3" /fREG ADD %KEY%\020 /V 1 /D "%I%Blocklist\Blocklist_Manager.exe" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %I%RegFiles\BLMSetting.reg" /f#this is the line that creates a new window, clears current RunOnceEx entries, I believeREG ADD %KEY%\020 /V 3 /D "rundll32.exe iernonce.dll,RunOnceExProcess" /fREG ADD %KEY% /V TITLE /D "Installing Programs" /fIn theory, I think that this way, you should be able to reboot and the different windows are still created as planned. Try it out and let me know. Edited September 28, 2005 by tap52384
drscouse Posted September 28, 2005 Posted September 28, 2005 Thank tap52384.. will give it a go shortly and let you know...I dont use nlite, but the english version of a utility found herehttp://www.vitaligraf.de/I found it very suited to me needs, although I do end up customiseing a lot of the files for my particular needs...I us Autopatcher to update my system, and run it from ROE... I just wanted to reboot after installing this, prior to installing my apps.. some of which needs the updates in AP....Im currently re-thinking my install strategy, moving things about, trying to find the best order to install things, and at what part in the timeline.My ROE is quite large, and I like the idea of splitting it up into smaller windows... Thanks
drscouse Posted September 28, 2005 Posted September 28, 2005 Hmmm Ive tried many variations based on that line.. but it cause allsorts of weird happenings, apart from the one I want...The following is my test script, which I want to reboot after "Installing Drivers & Hotfixes" is completed, and resume with the install on a clean window. However, it reboots, and does not run any further....If I remove REG ADD %KEY%\003 /VE /D "#REBOOT#...." /fREG ADD %KEY%\003 /V 5 /D %WINDIR%\system32\ShutDown.cmdThe install works well, and three ROE windows will popup for each respective section.. however, it obviously now does not reboot.If I leave that line in, and alter the number sequenced so they are all concurrent, it will reboot half way through the list, and then resume, however, it will then not display any further ROE windows...cmdow @ /HIDSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExfor %%a in (z y x w v u t s r q p o n m l k j i h g f e d c) do if exist %%a:\I386 (set CDROM=%%a:goto install):installREG ADD %KEY% /V TITLE /D "Installing Drivers & Hotfixes" /fREG ADD %KEY%\000 /VE /D "ATi Control Panel" /fREG ADD %KEY%\000 /V 01 /D "\"%CDROM%\Software\ATi Control Panel\Setup.exe\" /k" /fREG ADD %KEY%\001 /VE /D "Nvidia Audo Mixer" /fREG ADD %KEY%\001 /V 01 /D "\"%CDROM%\Software\Nvidia Audo Mixer\Setup.exe\" /s" /fREG ADD %KEY%\002 /VE /D "UPHClean (WinService)" /fREG ADD %KEY%\002 /V 01 /D "\"%CDROM%\Software\UPHClean\uphclean.msi\" /quiet /passive" /fREG ADD %KEY%\003 /VE /D "#REBOOT#...." /fREG ADD %KEY%\003 /V 5 /D %WINDIR%\system32\ShutDown.cmdrundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Installing Apps" /fREG ADD %KEY%\000 /VE /D "TaskSwitchXP" /fREG ADD %KEY%\000 /V 01 /D "\"%CDROM%\Software\TaskSwitchXP\TSXP.exe\" /S" /fREG ADD %KEY%\001 /VE /D "ExplorerXP" /fREG ADD %KEY%\001 /V 01 /D "\"%CDROM%\Software\ExplorerXP\eXP.exe\" /S" /fREG ADD %KEY%\002 /VE /D "Free Download Manager" /fREG ADD %KEY%\002 /V 01 /D "\"%CDROM%\Software\Free DownMan\fdminst.exe\" /sp- /silent" /frundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY% /V TITLE /D "Applying RegTweaks & Fixes" /fREG ADD %KEY%\000 /VE /D "UltraISO Reg" /fREG ADD %KEY%\000 /V 01 /D "regedit /s \"%CDROM%\Software\UltraISO Reg\Serial.reg\"" /fREG ADD %KEY%\001 /VE /D "ExplorerXP" /fREG ADD %KEY%\001 /V 01 /D "regedit /s \"%CDROM%\Software\ExplorerXP\CustomREG.reg\"" /fREG ADD %KEY%\020 /VE /D "Restore Manual Logon" /fREG ADD %KEY%\020 /V 01 /D "regedit /s \"%WINDIR%\system32\manlogon.reg\"" /fREG ADD %KEY%\050 /VE /D "Clean & Reboot" /fREG ADD %KEY%\050 /V 5 /D "shutdown.exe -r -f -t 60 -c \"#FINAL BOOT SEQUENCE#\"" /frundll32.exe iernonce.dll,RunOnceExProcessEXITI have tried adding the line you suggested both before and after the shutdown command, but it then affects the way it runs... I cant seem to find the meeting in the middle of the 2 methods I have1. One long ist, with a reboot in the middle, but continues with the list2. No reboot, but 3 seperate ROE windows...Its quite a labourious task even using VMWare so not to kill my one and only PC... I would really appreciate any help with fine tuning this process...Thanks
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now