phaolo Posted April 23, 2007 Share Posted April 23, 2007 (edited) Hello, I have a problem with my RunOnceEx list because it's too long and it exits from the screen (40+ programs).Is there a way to fix this? For example using another column or decrease spaces and fonts?Screenshot attachedThanks Edited April 24, 2007 by phaolo Link to comment Share on other sites More sharing options...
phaolo Posted April 24, 2007 Author Share Posted April 24, 2007 Hey, it's the third time that nobody answers to my post.. is there anybody out there? (O_o) Link to comment Share on other sites More sharing options...
geezery Posted April 24, 2007 Share Posted April 24, 2007 I think you have two options here. 1. Reduce the quantity of the titles. (Put more commands under one title)2. Use some 3rd party resolution changer tool for example: Video Resolution Changer Link to comment Share on other sites More sharing options...
urie Posted April 24, 2007 Share Posted April 24, 2007 geezery, look here some infohttp://www.msfn.org/board/index.php?s=&showtopic=93721&view=findpost&p=631514 Link to comment Share on other sites More sharing options...
kof94 Posted April 24, 2007 Share Posted April 24, 2007 I'm going back a bit here but here's a snip from an old RunOnceEx process I used to use.Basically, I set everything up the most common way via cmdlines.txt but the only RunOnceEx command I had was to launch a second batch at boot time this batch sort of read like this:@echo offcmdow @ /HIDFOR %%i IN (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:\DVD.ICO SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "System Updates" /fREG ADD %KEY%10 /VE /D ".NET Framework 1.1 SP1" /fREG ADD %KEY%10 /V 1 /D "%CDROM%\Software\System\DotNetFramwork11.exe" /fREG ADD %KEY%15 /VE /D ".NET Framework 2.0" /fREG ADD %KEY%15 /V 1 /D "%CDROM%\Software\System\DotNetFramwork20.exe" /fREG ADD %KEY%20 /VE /D "Java Runtimes 5.0 Update 6" /fREG ADD %KEY%20 /V 1 /D "%CDROM%\Software\System\JavaRuntimes50u6.exe" /frundll32.exe iernonce.dll,RunOnceExProcessREG ADD %KEY%25 /VE /D "UPX Shell 3.2.1.2007" /fREG ADD %KEY%25 /V 1 /D "%CDROM%\Software\Compression\UPXShell_321_2007.exe /SILENT /SP-" /fREG ADD %KEY%30 /VE /D "WinRAR 3.51" /fREG ADD %KEY%30 /V 1 /D "%CDROM%\Software\Compression\WinRAR351_Setup.exe /s" /fREG ADD %KEY%30 /V 2 /D "regedt32 /s %CDROM%\Software\Compression\WinRAR351_Settings.reg" /frundll32.exe iernonce.dll,RunOnceExProcess...Whats happening here is, the reg entries are being written to the registry then executed using this command:rundll32.exe iernonce.dll,RunOnceExProcessEvery time it's executed your batch has to pause until it's time to add the next set of reg entries then it starts all over again. This includes creating a new RunOnceEx window.This is exactly the same process used by WPI in the old days when you specified how many apps you wanted displayed per RunOnceEx window.Hope this helps. Link to comment Share on other sites More sharing options...
phaolo Posted April 25, 2007 Author Share Posted April 25, 2007 (edited) Oh, thanks for the answers.Rundll32.exe method seems the one I need Just a little thing: I'd like to add a fake entry to signal that the list continues; is there a way to avoid an empty null.bat? I don't think that I can avoid the second linereg add %KEY%21 /VE /D "continue..." /freg add %KEY%21 /V 1 /D "%CDROM%\Apps\null.bat" /frundll32.exe iernonce.dll,RunOnceExProcess Edited April 25, 2007 by phaolo Link to comment Share on other sites More sharing options...
phaolo Posted April 25, 2007 Author Share Posted April 25, 2007 (edited) No! There's a problem!The list is divided in many sub-lists as I wanted, but now RunOnceEx is launched While windows is still registering components! That could be messy and besides of that I cannot use ctrl-alt-canc in case of Autoit errors (so all blocks)Maybe I have to use more RunOnceExes? Edited April 25, 2007 by phaolo Link to comment Share on other sites More sharing options...
kof94 Posted April 25, 2007 Share Posted April 25, 2007 (edited) I use inf's now for all this but the principle is still the same.Create a batch that runs at T-12 via cmdlines.txt that just adds one RunOnceEx command which executes your main install batch.cmdlines.txt batch:@echo offcmdow @ /HIDFOR %%i IN (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:\DVD.ICO SET CDROM=%%i:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Windows Update" /fREG ADD %KEY%10 /VE /D "Installing Software" /fREG ADD %KEY%10 /V 1 /D "%CDROM%\Install.cmd" /fThen your main batch file, Install.cmd in my example, would consist of something like I showed you earlier.I have an old topic around here somewhere that explains this whole lot better, I'll try to find it.Edit: Found it here. Edited April 25, 2007 by kof94 Link to comment Share on other sites More sharing options...
phaolo Posted April 26, 2007 Author Share Posted April 26, 2007 Thanks kof94 for the suggestions.Now I'd like to try another metod though.I'll use multiple RunOnceEx which call each other.I've only a doubt about $OEM path. It's like %SYSTEMDRIVE% right?last lines of RunOnceEx01.cmd:-----rem ##call to another RunOnceEx (needed to break the list in more parts)reg add %KEY%85 /VE /D "continue... (1/4 completed)" /freg add %KEY%85 /V 1 /D "%SYSTEMDRIVE%\RunOnceEx02.cmd" /frem ##execute current RunOnceEx (keep at the end!)rundll32.exe iernonce.dll,RunOnceExProcessEXIT--- Link to comment Share on other sites More sharing options...
kof94 Posted April 27, 2007 Share Posted April 27, 2007 (edited) You'll need to go back and read the Unattended XP site again for your $OEM$ paths i.e. which $ folder equates to which system folder. I'd do it for you but it'll probably do you good to read the whole thing.%SYSTEMDRIVE% is the variable for the root of the drive you have Windows installed on, commonly C: . If you fire up command prompt and type set it'll show you all the current variables.The batch I showed you set's a variable for your CD\DVD drive and installs all your programs from there instead of messing about with $OEM$ folders. Again all this is on the Unattended XP site, but it's totally up to you how you want to do it.Happy reading and good luck Edited April 27, 2007 by kof94 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now