phaolo Posted December 29, 2008 Posted December 29, 2008 I still have some little problems with my unattended "project".I'm not totally noob on the matter as in the past I've already created a WinXp Pro CD with applications installed by a single RunOnceEx. I have then tested it for a year without big errors.Now, I'd like to make a WinXp Pro DVD plus programs installed with multiple RunOnceEx (each cmd file reboots the system at the end and calls the next)What I'm asking: is there a way to run all RunOnceEx lists with multiple reboots and load the desktop only at the end?Currenty happens that the desktop (tray+icons+settings) is loaded at first reboot, while I'd like to maintain the blue empty desktop behind all the lists.Err.. it's hard to explain exactly, I'll add more info plus a picture if needed
phaolo Posted December 30, 2008 Author Posted December 30, 2008 Please tell me something T_TIf I've explained badly let me try again
darksimoon Posted December 31, 2008 Posted December 31, 2008 hello friend;i'm sending you my runonceexes. inside there are 5 runonceex. they call each other by turn. ingestigate it. i hope you get what you need. start it from cmdline.txt.command.rar
phaolo Posted December 31, 2008 Author Posted December 31, 2008 (edited) Thank you for your answer darksimoon. Unfortunately however, your Runonceexes only call themselves but don't seem to reboot machine at each end.I need to restart the computer to let some programs finish their setups and also to defragment better.I'll post some of my files so you can see what I mean (the last A and B don' restart though)During setup, after the first file i see a window that says something like: "loading settings" then desktop and tray appears. I'd like to make that happen only after last runonceex list so it doesn't mess with other installations (plus more professional appearance)p.s: if I set reboot to 0 instead of 10 seconds, the "loading settings" procedure is badly interrupted.. not good I thinkpaorunonceexes.zip Edited December 31, 2008 by phaolo
iamtheky Posted December 31, 2008 Posted December 31, 2008 The runonceex resumes where it left off, why would you need multiples? I install .net3.5 with a /forcerestart, so dependent apps have it available, and it reboots and picks up where it left off. Increment the autologon in the .sif by 1 for each reboot.
phaolo Posted December 31, 2008 Author Posted December 31, 2008 (edited) In the old cd I had only one runoncex with one reboot at end, but it was really uncomfortable (and messy).Now I prefer multiples for:-keeping max 18 entries so list doesn't go out of screen-easier managing of entries and reboots-different types to add custom menu setup (for example with\without drivers). Still need to work on it thoughAnyway the problem here is NOT the existance of multiples lists but instead only the first reboot!All is working good except for the previous problem. I've already incremented the autologon, then, thanks Edited December 31, 2008 by phaolo
darksimoon Posted January 1, 2009 Posted January 1, 2009 hello phaolo ;i'm not sure how its done exactly but why dont you add "shutdown -t 5" command in the runonceex where you want it to reboot or in the software's *.bat file that includes setup parameters ? i think you can manage this issue this way.
phaolo Posted January 1, 2009 Author Posted January 1, 2009 Uh what do you mean? If you see my files I'm currently using:shutdown.exe -r -t 10 -c \"Windows XP will now restart in 10 seconds...\"This prevents the "loading setting" interruption, but doesn't avoid it till the last runonceex as I'd like to do
Martin H Posted January 1, 2009 Posted January 1, 2009 (edited) I don't have any experience with multiple RunOnceEx runs i must admit(only one), but cant you not just as the last entry in each runonceex(n).cmd set the next runonceex(n).cmd to run and then have a reboot without any 5 secs pause as the last line in each runonceex(n).cmd except the first ? Edited January 1, 2009 by Martin H
phaolo Posted January 1, 2009 Author Posted January 1, 2009 (edited) Uh probably I didn't manage to explain my problem. Sorry it's hard to do it, expecially in another language.I don't understand your suggestion Martin. There's no point in removing the pause in the other batch files as the problem is not related to that.The only trouble is that Windows loads the desktop when the first runonceex is finished. I've tried to "pause" the process but shutdown closes it anyway. A somewhat solution could be stopping the desktop until I need or a method to leave runonceex open before rebooting.I'd like an empty blue background until all the programs have been installed after the required reboots. Only after all, desktop and settings can be loaded (or maybe is not possible?). Edited January 1, 2009 by phaolo
phaolo Posted January 5, 2009 Author Posted January 5, 2009 (edited) Mm I try to change the question so maybe it will be more clear. Anyway thanks to the previous posters for the effort.Question:Even with one RunOnceEx, how can you reboot many times the machine during unattended setup and keep the blue empty desktop in the background until the end? Edited January 5, 2009 by phaolo
iamtheky Posted January 5, 2009 Posted January 5, 2009 If there are keys remaining in the runonceex it will resume from reboot (to the same blue screen and progress box) and finish.the following lines would install dotnet -- reboot -- resume and install wmp11 -- only displaying the desktop after the final key is ran. REG ADD %REGKEY%\001 /VE /D "installing dot net 3.5" /fREG ADD %REGKEY%\001 /v 1 /D "d:\source\DOTNET35\dotnet35.exe /q /forcerestart" /fREG ADD %REGKEY%\009 /VE /D "Installing Windows Media Player 11" /fREG ADD %REGKEY%\009 /v 9 /D "d:\source\WMP11\wmp11.exe /Q:A" /fREG ADD %REGKEY%\009 /v 10 /D "d:\source\WMP11\KB954154.exe /passive /norestart" /f
phaolo Posted January 5, 2009 Author Posted January 5, 2009 (edited) Yee that's useful However I'm puzzled why my method doesn't work as I keep RunOnceEx open with this last line: hidcon.exe %COMSPEC% /c pauseMaybe I should just add another empty line after the pause. I'll test it, thanks iamthekey p.s: I prefer to use shutdown so I can freely manage the restarts Edited January 5, 2009 by phaolo
phaolo Posted January 5, 2009 Author Posted January 5, 2009 (edited) Oh yeah! I've tried it in a non-setup state, but it seems to work pretty good.Thank you againFinally it's solved! *phew* Edited January 5, 2009 by phaolo
an3k Posted January 6, 2009 Posted January 6, 2009 (edited) this is what i'm using:RunOnceEx.cmd (called by cmdlines.txt):cmdow @ /HID@echo offSET KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /v "Title" /d "Installation von Anwendungen" /fREG ADD %KEY%\001 /ve /d "Windows Messenger" /fREG ADD %KEY%\001 /v "01" /d "%SYSTEMROOT%\system32\net.exe use T: \\DATA\RIS password /user:username" /fREG ADD %KEY%\001 /v "02" /d "%SYSTEMROOT%\system32\rundll32.exe advpack.dll,LaunchINFSection %SYSTEMROOT%\INF\msmsgs.inf,BLC.Remove,5" /fREG ADD %KEY%\005 /ve /d ".NET Framework" /fREG ADD %KEY%\005 /v "01" /d "T:\x86\source\public\NETFramework35ServicePack1.exe /quiet /norestart" /fREG ADD %KEY%\010 /ve /d "Windows Media Player" /fREG ADD %KEY%\010 /v "01" /d "T:\x86\source\public\WindowsMediaPlayer11.exe /Q" /fREG ADD %KEY%\015 /ve /d "Internet Explorer" /fREG ADD %KEY%\015 /v "01" /d "T:\x86\source\public\InternetExplorer7.exe /quiet /update-no /nobackup /norestart" /fREG ADD %KEY%\015 /v "02" /d "T:\x86\xp_pro\scripts\internal\%COMPUTERNAME%\RunOnceEx1.cmd" /fREG ADD %KEY%\015 /v "03" /d "%SYSTEMROOT%\system32\shutdown.exe -r -t 0" /fEXITRunOnceEx1.cmd (called by RunOnceEx.cmd):cmdow @ /HID@echo offSET KEY=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /v "Title" /d "Installation von Anwendungen" /fREG ADD %KEY%\020 /ve /d "Apple QuickTime" /fREG ADD %KEY%\020 /v "01" /d "%SYSTEMROOT%\system32\net.exe use T: \\DATA\RIS password /user:username" /fREG ADD %KEY%\020 /v "02" /d "T:\x86\source\public\AppleQuicktime75.exe /quiet /norestart" /fREG ADD %KEY%\025 /ve /d "Adobe Acrobat Reader" /fREG ADD %KEY%\025 /v "01" /d "T:\x86\source\public\AdobeAcrobat9Reader.exe /sAll" /fREG ADD %KEY%\030 /ve /d "Adobe Flash Player" /fREG ADD %KEY%\030 /v "01" /d "T:\x86\source\public\AdobeFlashPlayer10.msi /quiet /norestart" /fREG ADD %KEY%\035 /ve /d "WinZip" /fREG ADD %KEY%\035 /v "01" /d "T:\x86\source\public\WinZip111.msi /quiet /norestart" /fREG ADD %KEY%\040 /ve /d "WinRAR" /fREG ADD %KEY%\040 /v "01" /d "T:\x86\source\public\WinRAR380.exe /s" /fREG ADD %KEY%\040 /v "02" /d "%SYSTEMROOT%\system32\shutdown.exe -r -t 0" /fEXITshutdown.exe is official microsoft tool. in RunOnceEx.cmd i call shutdown to reboot instead of using the ie7setup since "shutdown -r -t 0" is a save reboot, ie7setup not! Edited January 15, 2009 by an3k
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